Last active
June 30, 2019 21:03
-
-
Save kenmasters/7a305cd91b8e6bea067de0ababb71fa0 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