ms_translation_flag

The Membership 2 ms translation flag hook.

Description

apply_filters( 'ms_translation_flag', $var, (string) $message_protected ); 

Parameters (2)

0. $var
__( 'Content protection message', 'membership2' )
1. $message_protected (string) => 'message-protected'
The message protected.

Usage

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

Defined (13)

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

/app/view/settings/page/class-ms-view-settings-page-messages.php  
  1. $subtitle = apply_filters( 
  1. $subtitle = apply_filters( 
  1. $subtitle = apply_filters( 
/app/view/settings/page/class-ms-view-settings-page-communications.php  
  1. 'title' => apply_filters( 
  1. 'title' => apply_filters( 
/app/view/membership/tab/class-ms-view-membership-tab-details.php  
  1. 'title' => apply_filters( 
  1. 'title' => apply_filters( 
/app/gateway/stripe/view/class-ms-gateway-stripe-view-settings.php  
  1. 'title' => apply_filters( 
/app/gateway/paypalstandard/view/class-ms-gateway-paypalstandard-view-settings.php  
  1. 'title' => apply_filters( 
/app/gateway/paypalsingle/view/class-ms-gateway-paypalsingle-view-settings.php  
  1. 'title' => apply_filters( 
/app/gateway/manual/view/class-ms-gateway-manual-view-settings.php  
  1. 'title' => apply_filters( 
  1. 'title' => apply_filters( 
/app/gateway/authorize/view/class-ms-gateway-authorize-view-settings.php  
  1. 'title' => apply_filters(