membership_gateway_exp_window

The WordPress Core membership gateway exp window hook.

Description

apply_filters( 'membership_gateway_exp_window', (string) _hours ); 

Parameters (1)

0. $6_hours (string) => "+ 6 hours"
The 6 hours.

Usage

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

Defined (1)

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

/app_old/membershipincludes/classes/class.membership.php  
  1. if( strtotime(apply_filters('membership_gateway_exp_window', "+ 6 hours"), mysql2date("U", $rel->expirydate)) <= time() ) {