Created
October 23, 2013 08:25
-
-
Save jeffikus/7114667 to your computer and use it in GitHub Desktop.
Filter WordPress Registration URL
This file contains 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('register', 'my_custom_registration_link'); | |
function my_custom_registration_link($link) { | |
if(!is_user_logged_in()) { | |
// In this example there is a page with slug 'register' so the url would be http://mysite.com/register | |
$link = '<div class="status register"><a href="' . site_url('register') . '">' . __('Register') . '</a></div>'; | |
} | |
return $link; | |
} // End my_custom_registration_link() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment