mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
https://github.com/Charitable/library/blob/master/forms/general/make-form-fields-required-not-required.php
6 lines
283 B
Text
6 lines
283 B
Text
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' );
|