Last active
October 16, 2015 21:31
-
-
Save dancameron/83f2beb709399e22ca4d to your computer and use it in GitHub Desktop.
Filter Default Estimation Fields
This file contains hidden or 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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment