Skip to content

Instantly share code, notes, and snippets.

@jeffikus
Created October 23, 2013 08:25
Show Gist options
  • Save jeffikus/7114667 to your computer and use it in GitHub Desktop.
Save jeffikus/7114667 to your computer and use it in GitHub Desktop.
Filter WordPress Registration URL
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