Skip to content

Commit

Permalink
Add wp_saml_auth_pre_logout action to fire before logout
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Dec 8, 2021
1 parent 676a77f commit 4b07ec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/class-wp-saml-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ public function action_login_message( $message ) {
* Log the user out of the SAML instance when they log out of WordPress
*/
public function action_wp_logout() {
/**
* Fires before the user is logged out.
*/
do_action( 'wp_saml_auth_pre_logout' );
$provider = $this->get_provider();
if ( 'internal' === self::get_option( 'connection_type' ) ) {
$internal_config = self::get_option( 'internal_config' );
Expand Down

0 comments on commit 4b07ec2

Please sign in to comment.