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

// Redirect Login Page
function custom_login_page_redirect()
{
global $pagenow;
if ( ( strtolower($pagenow) == 'wp-login.php')) {
    wp_redirect( home_url('/login/'));
    exit();
}
}
add_filter( 'init', 'custom_login_page_redirect' );

Node.js , Socket.io, Heroku(Cloud Hosting Platform) Installations / Basics
I need a wordpress developer to develop a custom plugin.

Leave a Comment

Your email address will not be published. Required fields are marked *