Skip to content

Instantly share code, notes, and snippets.

@PluginRepublicSupport
Created February 7, 2023 14:06
Show Gist options
  • Save PluginRepublicSupport/1befc962181a72616252f4915e515da5 to your computer and use it in GitHub Desktop.
Save PluginRepublicSupport/1befc962181a72616252f4915e515da5 to your computer and use it in GitHub Desktop.
Remove fields in Request A Quote Form
<?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