Documentation

Print This page

Prevent LoginPress Login Redirects(Hook)

If you want to stop LoginPress login redirects at somewhere. The following filter will help you achieve the task

add_filter( 'prevent_loginpress_login_redirect', 'prevent_loginpress_login_redirect_callback', 10, 1 );

function prevent_loginpress_login_redirect_callback( $condition ) {

if ( //your condition ) {

$condition = 'true';

}

return $condition;

}

Here $condition contains the boolean value. true for no redirection.