pmpro_paypal_button_image

The Paid Memberships Pro pmpro paypal button image hook.

Description

apply_filters( 'pmpro_paypal_button_image', (string) $https_www_paypal_com_en_us_i_btn_btn_xpresscheckout_gif ); 

Parameters (1)

0. $https_www_paypal_com_en_us_i_btn_btn_xpresscheckout_gif (string) => "https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif"
The https www paypal com en us i btn btn xpresscheckout gif.

Usage

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

Defined (3)

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

/classes/gateways/class.pmprogateway_paypalstandard.php  
  1. <input type="image" value="<?php _e('Check Out with PayPal', 'paid-memberships-pro' );?> »" src="<?php echo apply_filters("pmpro_paypal_button_image", "https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif");?>" /> 
/classes/gateways/class.pmprogateway_paypalexpress.php  
  1. <input type="image" class="pmpro_btn-submit-checkout" value="<?php _e('Check Out with PayPal', 'paid-memberships-pro' );?> »" src="<?php echo apply_filters("pmpro_paypal_button_image", "https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif");?>" /> 
/classes/gateways/class.pmprogateway_paypal.php  
  1. <input type="image" class="pmpro_btn-submit-checkout" value="<?php _e('Check Out with PayPal', 'paid-memberships-pro' );?> »" src="<?php echo apply_filters("pmpro_paypal_button_image", "https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif");?>" />