wc_session_expiring

The WooCommerce wc session expiring hook.

Description

apply_filters( 'wc_session_expiring', (unknown) _60_47 ); 

Parameters (1)

0. $60_60_47 (unknown) => 60 * 60 * 47
The 60 60 47.

Usage

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

Defined (1)

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

/includes/class-wc-session-handler.php  
  1. $this->_session_expiring = time() + intval( apply_filters( 'wc_session_expiring', 60 * 60 * 47 ) ); // 47 Hours.