Donation Form Donation Amount Hook not working
-
Hi
I put this code into code snippets plugin (works like a charm for donation form – user section fields) but it is not able to change the label (tried changing the placeholder text – did not work also).
Can you please help?
—
function ed_charitable_change_donation_form_donation_fields( $fields ) {
/**
* Change the label of the Donation Amount field.
*/
$fields[‘donation_amount’][‘label’] = __( ‘Donation – Min $100’, ‘your-namespace’ );/**
* Change the placeholder shown inside the field when it hasn’t been set yet.
*/
$fields[‘donation_amount’][‘placeholder’] = __( ‘Min $100’, ‘your-namespace’ );return $fields;
}
add_filter( ‘charitable_donation_form_donation_fields’, ‘ed_charitable_change_donation_form_donation_fields’ );
—
The topic ‘Donation Form Donation Amount Hook not working’ is closed to new replies.