Make the phone field required in the donation form of Charitable

Make the phone field required in the donation form of Charitable on child sites.

Snippet Type

Execute on Child Sites

Snippet

function ed_charitable_make_donation_form_field_required( $fields ) {
    $fields['phone']['required'] = true; // Change to false to make it not required.
    return $fields;
}

add_filter( 'charitable_donation_form_user_fields', 'ed_charitable_make_donation_form_field_required' );

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