Created
March 9, 2020 09:42
-
-
Save shadyvb/3caf91021d394d24dd8cd729a35a3bb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', function() { | |
add_filter( 'wpsimplesaml_force', function( $force ) { | |
if ( YOUR_CONDITION_HERE ) { | |
return false; // Do not force redirection | |
} | |
return $force; | |
}, 11 ); // Priority at 11 to override the admin setting | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment