membership_return_url_<gateway>

The Membership 2 membership return url gateway hook.

Description

apply_filters( 'membership_return_url_<gateway>', $m_get_returnurl_permalink ); 

Parameters (1)

0. $m_get_returnurl_permalink
The m get returnurl permalink.

Usage

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

Defined (5)

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

/app_old/membershipincludes/gateways/gateway.paypalsolo.php  
  1. $form .= '<input type="hidden" name="return" value="' . apply_filters( 'membership_return_url_' . $this->gateway, M_get_returnurl_permalink()) . '">'; 
/app_old/membershipincludes/gateways/gateway.paypalexpress.php  
  1. $form .= '<input type="hidden" name="return" value="' . apply_filters( 'membership_return_url_' . $this->gateway, M_get_returnurl_permalink()) . '">'; 
  1. $form .= '<input type="hidden" name="return" value="' . apply_filters( 'membership_return_url_' . $this->gateway, M_get_returnurl_permalink()) . '">'; 
  1. $form .= '<input type="hidden" name="return" value="' . apply_filters( 'membership_return_url_' . $this->gateway, M_get_returnurl_permalink()) . '">'; 
  1. $form .= '<input type="hidden" name="return" value="' . apply_filters( 'membership_return_url_' . $this->gateway, M_get_returnurl_permalink()) . '">';