Created
June 20, 2022 02:10
-
-
Save ericnicolaas/e39c2ba3592a20b455ebd7f93257136c to your computer and use it in GitHub Desktop.
Giving Hand theme overriding form fields.
This file contains 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_donation_form_fields', 'givinghand_charitable_donation_form_fields', 10, 2 ); | |
function givinghand_charitable_donation_form_fields( $fields, $object ) { | |
$fields['donation_fields']['legend'] = '<h4>'. esc_html__( 'How Much Would you like to Donate?', 'givinghand' ) .'</h4>'; | |
$fields['user_fields']['legend'] = '<h4>'. esc_html__( 'Billing Information', 'givinghand' ) .'</h4>'; | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment