MemberPress: Disable the Unauthorized Redirection for Multiple Pages And/or Posts
function mepr_stop_unauthorized_redirect( $redirect, $url, $delim ) { global $post; if(in_array($post->ID, array( 123, 456, 789 ) ) ) { $redirect = false; } return $redirect; } add_filter( ‘mepr_pre_run_rule_redirection’, ‘mepr_stop_unauthorized_redirect’, 10, 3 );Continue reading