Change the state field into a province field in the donation form in Charitable

Change the state field into a province field in the donation form in Charitable on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_action(
	'init',
	function ( $fields ) {
		$fields = charitable()->donation_fields();
		$field  = $fields->get_field( 'state' );
		$field->label = 'Province';
		$field->set( 'donation_form', 'label', 'Province' );
	},
	11
);
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.