ms_controller_protection_get_active_tab

The Membership 2 ms controller protection get active tab hook.

Description

apply_filters( 'ms_controller_protection_get_active_tab', (unknown) $active_tab ); 

Parameters (1)

0. $active_tab (unknown)
The active tab.

Usage

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

Defined (1)

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

/app/controller/class-ms-controller-protection.php  
  1. $this->active_tab = apply_filters(