Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

redirect wordpress core login

add_action(  'login_init', 'user_registration_login_init'  );
function user_registration_login_init () {
     if( ! is_user_logged_in() ) {
        wp_redirect( '/my-account' );
        exit;
      }
}
Source by wordpress.org #
 
PREVIOUS NEXT
Tagged: #redirect #wordpress #core #login
ADD COMMENT
Topic
Name
4+1 =