Created
April 7, 2017 13:03
-
-
Save bigdigital/58eb64971ce7dadf30178919e0e46f9b to your computer and use it in GitHub Desktop.
Cnanging Logout Link The7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'logout_url', 'custom_logout_url' ); | |
function custom_logout_url( $default ) | |
{ | |
// set your URL here | |
return !current_user_can('administrator') ? 'http://example.com/custom' : $default; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment