pmpro_authorizenet_post_url

The Paid Memberships Pro pmpro authorizenet post url hook.

Description

apply_filters( 'pmpro_authorizenet_post_url', (unknown) $post_url, (unknown) $gateway_environment ); 

Parameters (2)

0. $post_url (unknown)
The post url.
1. $gateway_environment (unknown)
The gateway environment.

Usage

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

Defined (4)

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

/classes/gateways/class.pmprogateway_authorizenet.php  
  1. $post_url = apply_filters("pmpro_authorizenet_post_url", $post_url, $gateway_environment); 
  1. $post_url = apply_filters("pmpro_authorizenet_post_url", $post_url, $gateway_environment); 
  1. $post_url = apply_filters("pmpro_authorizenet_post_url", $post_url, $gateway_environment); 
  1. $posturl = apply_filters("pmpro_authorizenet_post_url", $posturl, pmpro_getOption("gateway_environment"));