Skip to main content
Flox Blog Beginner's Guide for Web Developers. 60% Off in Website Design & Development click here.

How to redirect WP-Members plugin after Log In redirect to Other Page?

Hello friends. Some day ago i face a problem that when i will use a plugin called WP-Members Membership Plugin , I need custom redirect when i will login to the WordPress website.

The solution is:

Open Your Function.php File and paste this below code.

add_filter( 'wpmem_login_redirect', 'my_login_redirect', 10, 2 );
function my_login_redirect( $redirect_to, $user_id ) {
    
    // This will redirect to https://yourdomain.com/your-page/
    return home_url( '/your-page/' );

}

 

Leave a Reply

avatar
  Subscribe  
Notify of
F