Created
August 23, 2023 13:59
-
-
Save PluginRepublicSupport/bc1a50d7ff0570f47c73f774ec10202c to your computer and use it in GitHub Desktop.
Make phone field required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function prefix_required_quote_fields( $fields ) { | |
$fields['phone']['required'] = true; | |
return $fields; | |
} | |
add_filter( 'wcraq_quote_fields' , 'prefix_required_quote_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment