ms_controller_verify_nonce

The Membership 2 ms controller verify nonce hook.

Description

apply_filters( 'ms_controller_verify_nonce', (unknown) $verified, (unknown) $action, (unknown) $request_method, (unknown) $nonce_field, (unknown) $instance ); 

Parameters (5)

0. $verified (unknown)
The verified.
1. $action (unknown)
The action.
2. $request_method (unknown)
The request method.
3. $nonce_field (unknown)
The nonce field.
4. $instance (unknown)
The this.

Usage

To run the hook, copy the example below.
  1. $verified = apply_filters( 'ms_controller_verify_nonce', $verified, $action, $request_method, $nonce_field, $instance ); 
  2.  
  3. if ( !empty( $verified ) ) { 
  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_verify_nonce callback 
  2. function filter_ms_controller_verify_nonce( $verified, $action, $request_method, $nonce_field, $instance ) { 
  3. // make filter magic happen here... 
  4. return $verified
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ms_controller_verify_nonce', 'filter_ms_controller_verify_nonce', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ms_controller_verify_nonce', 'filter_ms_controller_verify_nonce', 10, 5 ); 

Defined (1)

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

/app/class-ms-controller.php  
  1. return apply_filters(