Documentation

Print This page

Prevent LoginPress LogOut Redirects

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

add_filter( 'prevent_loginpress_logout_redirect', 'prevent_loginpress_logout_redirect_callback', 10, 1 );

function prevent_loginpress_logout_redirect_callback( $condition ) {

if ( //your condition ) {

$condition = 'true';

}

return $condition;

}

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