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

function prevent_loginpress_login_redirect_callback( $condition ) {
if ( //your condition ) {
$condition = 'true';
}
return $condition;
}
add_filter( 'prevent_loginpress_login_redirect', 'prevent_loginpress_login_redirect_callback', 10, 1 );

Here $condition contains the boolean valuetrue for no redirection.