Customize Estimate Submission Form
Submission fields are filterable via si_submission_form_fields.
Example:
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 filter_si_submission_form_fields( $fields = array() ) { | |
// Remove the budget field | |
unset( $fields['budget'] ); | |
$fields['examples'] = array( | |
'weight' => 120, | |
'label' => __( 'Examples' ), | |
'type' => 'textarea', | |
'required' => TRUE, | |
'placeholder' => 'Some examples of your request.' | |
); | |
return $fields; | |
} | |
add_filter( 'si_submission_form_fields', 'filter_si_submission_form_fields' ); |