ms_shortcode_logout_redirect

The WordPress Core ms shortcode logout redirect hook.

Description

apply_filters( 'ms_shortcode_logout_redirect', (unknown) $redirect_logout, (unknown) $member ); 

Parameters (2)

0. $redirect_logout (unknown)
The redirect logout.
1. $member (unknown)
The member.

Usage

To run the hook, copy the example below.
  1. $redirect_logout = apply_filters( 'ms_shortcode_logout_redirect', $redirect_logout, $member ); 
  2.  
  3. if ( !empty( $redirect_logout ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ms_shortcode_logout_redirect callback 
  2. function filter_ms_shortcode_logout_redirect( $redirect_logout, $member ) { 
  3. // make filter magic happen here... 
  4. return $redirect_logout
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ms_shortcode_logout_redirect', 'filter_ms_shortcode_logout_redirect', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ms_shortcode_logout_redirect', 'filter_ms_shortcode_logout_redirect', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/app/view/shortcode/class-ms-view-shortcode-login.php  
  1. $redirect_logout = apply_filters(