designbymerovingi

buyCRED PayPal Form of Donation

May 27th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. /**
  2.  * Change PayPal Purchase Form Value
  3.  */
  4. add_filter( 'mycred_paypal-standard_purchase_fields', 'mycredpro_adjust_paypal_form' );
  5. function mycredpro_adjust_paypal_form( $fields ) {
  6.  
  7.     $fields['cmd'] = '_donations';
  8.  
  9.     return $fields;
  10.  
  11. }
Add Comment
Please, Sign In to add comment