-
-
Save pije76/59a169f3eb69cc8c23e3573873d556f9 to your computer and use it in GitHub Desktop.
Gravity Forms PayPal Standard Add-On
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Change payment currency base from another field, when specific form is submitted. | |
*/ | |
add_action( 'gform_pre_submission_2', 'change_currency_' ); | |
function change_currency_( $form ) { | |
add_filter( 'gform_currency', function() { return rgpost('input_4'); } ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment