Last active
September 9, 2021 06:13
-
-
Save plugin-republic/0246100836aebf1fa14cc26603e522ce to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Add extra fields to quote form | |
*/ | |
function prefix_add_quote_fields( $fields ) { | |
$fields['province'] = array( // Update the key here | |
'type' => 'text', // This will add a text field | |
'label' => 'Province', // Update the label here | |
'required' => true, // Set whether this field is required | |
'placeholder' => 'Province', // Update the placeholder text here | |
); | |
return $fields; | |
} | |
add_filter( 'wcraq_quote_fields', 'prefix_add_quote_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment