Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shadyvb/3caf91021d394d24dd8cd729a35a3bb0 to your computer and use it in GitHub Desktop.
Save shadyvb/3caf91021d394d24dd8cd729a35a3bb0 to your computer and use it in GitHub Desktop.
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