You created your custom register page ? And you want all the registrations done on that customized page ? Instead of the default wordpress page ? Then this might be your solution.
It checks for the default wordpress page and redirect the visitors to your custom page.
Just copy and paste this snippet into your functions.php or other suitable file and replace /registernow to your own URI. Save your file and done.
<?php
/**
* RedirectWPRegister()
* Redirect from Default wordpress register page to custom regsiter page.
*/
function RedirectWPRegister(){
$request = basename($_SERVER['REQUEST_URI']);
if ($request == 'wp-login.php?action=register'):
wp_redirect(site_url('/registernow'));
exit();
endif;
}
add_filter('init', 'RedirectWPRegister');
?>
Mail this!
- Comments (0)
- PingBacks (0)
- TrackBacks (0)


» Latest comments