If you need to enable registrations on the site for any reason you may end up with a lot of spam users coming from the default WordPress registration URL /wp-login.php?action=register

To counter this you can use a snippet to redirect to your actual registration page:

 

// Redirect Registration Page
function my_registration_page_redirect()
{
global $pagenow;
if ( ( strtolower($pagenow) == 'wp-login.php') && ( strtolower( $_GET['action']) == 'register' ) ) {
wp_redirect( home_url('/dog-swimming/register-dog-swimming/'));
}
}
add_filter( 'init', 'my_registration_page_redirect' );

Review My Order

0

Subtotal

 
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.