angelleye_fc_session_expired

The WordPress Core angelleye fc session expired hook.

Description

apply_filters( 'angelleye_fc_session_expired', (unknown) $sprintf, (unknown) $instance ); 

Parameters (2)

0. $sprintf — Optional. (unknown) => sprintf(__( 'Sorry, your session has expired. Return to homepage →', 'paypal-for-woocommerce' ), '"'.home_url().'"')
The sprintf.
1. $instance (unknown)
The instance.

Usage

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

Defined (1)

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

/classes/wc-gateway-paypal-pro-payflow-angelleye.php  
  1. $fc_session_expired = apply_filters( 'angelleye_fc_session_expired', sprintf(__( 'Sorry, your session has expired. <a href=%s>Return to homepage →</a>', 'paypal-for-woocommerce' ), '"'.home_url().'"'), $this );