Redirect to Dashboard

add_action ( 'template_redirect', 'redirect_homepage' );
function redirect_homepage(){
    if ( is_user_logged_in() && is_front_page() ) {
        wp_redirect('#') ;
        exit();
    }
}

Related Articles

MemberPress Check active

add_action ( ‘template_redirect’, ‘redirect_custom_nonactive’ );function redirect_custom_nonactive(){if ( current_user_can(‘mepr-active’) && is_front_page() ) {echo ‘Welcome, active member user!’;}else { echo ‘Welcome, non-active registered user!’;} }

Redirect to Dashboard(Custom Page)

#Logged in User Redirect to Custom Page
add_action ( 'template_redirect', 'redirect_custom_homepage' );
function redirect_custom_homepage(){
    if ( is_user_logged_in() && is_front_page() ) {
        wp_redirect('https://example.com/custom_page/') ;
        exit();
    }
}