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

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

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