rejoiner_returnurl

The WooCommerce Rejoiner rejoiner returnurl hook.

Description

apply_filters( 'rejoiner_returnurl', (unknown) $returnurl, (unknown) $this_sess, (unknown) $cart ); 

Parameters (3)

0. $returnurl (unknown)
The returnurl.
1. $this_sess (unknown)
The this sess.
2. $cart (unknown)
The cart.

Usage

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

Defined (2)

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

/includes/class-wc-rejoiner.php  
  1. $cart['return_url'] = apply_filters( 'rejoiner_returnurl', $returnUrl, $this->sess, $cart ); 
  1. $cart['return_url'] = apply_filters( 'rejoiner_returnurl', $returnUrl, $this->sess, $cart );