Skip to content

Instantly share code, notes, and snippets.

@ericnicolaas
Created June 20, 2022 02:10
Show Gist options
  • Save ericnicolaas/e39c2ba3592a20b455ebd7f93257136c to your computer and use it in GitHub Desktop.
Save ericnicolaas/e39c2ba3592a20b455ebd7f93257136c to your computer and use it in GitHub Desktop.
Giving Hand theme overriding form fields.
<?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