Created
February 7, 2023 14:06
-
-
Save PluginRepublicSupport/1befc962181a72616252f4915e515da5 to your computer and use it in GitHub Desktop.
Remove fields in Request A Quote Form
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 remove_quote_fields( $fields ) { | |
/** Remove company & message field **/ | |
unset($fields['company']); | |
unset($fields['message']); | |
/** Make phone field required **/ | |
$fields['phone']['required'] = true; | |
return $fields; | |
} | |
add_filter( 'wcraq_quote_fields' , 'remove_quote_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment