Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spivurno/a9b0e70d45a46b6315c8 to your computer and use it in GitHub Desktop.
Save spivurno/a9b0e70d45a46b6315c8 to your computer and use it in GitHub Desktop.
GP Auto Login // Gravity Perks // Bypass Custom Login System
<?php
/**
* GP Auto Login // Gravity Perks // Bypass Custom Login System
*/
add_action( 'gpal_pre_auto_login', function() {
remove_filter( 'authenticate', array( $GLOBALS['CAS_Maestro'], 'validate_login' ), 30, 3 );
remove_filter( 'login_url', array( $GLOBALS['CAS_Maestro'], 'bypass_reauth' ) );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment