Created
May 1, 2019 23:19
-
-
Save ericnicolaas/f4fa2e532f22c9fb290a73fc6fbd327a to your computer and use it in GitHub Desktop.
Charitable Ambassadors - Get suggested donations value
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
<?php | |
add_filter( | |
'charitable_campaign_submission_donation_options_fields', | |
function( $fields, $form ) { | |
$fields['suggested_donations']['value'] = $form->get_campaign_value( 'suggested_amounts' ); | |
return $fields; | |
}, | |
10, | |
2 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment