Skip to content

Instantly share code, notes, and snippets.

@dancameron
Last active October 16, 2015 21:31
Show Gist options
  • Select an option

  • Save dancameron/83f2beb709399e22ca4d to your computer and use it in GitHub Desktop.

Select an option

Save dancameron/83f2beb709399e22ca4d to your computer and use it in GitHub Desktop.
Filter Default Estimation Fields
<?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