Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created May 18, 2015 01:09
Show Gist options
  • Save bryceadams/0c7dc98d1a4acdb7257c to your computer and use it in GitHub Desktop.
Save bryceadams/0c7dc98d1a4acdb7257c to your computer and use it in GitHub Desktop.
add_filter( 'submit_job_form_fields', 'default_cat_field' );
function default_cat_field( $fields ) {
$fields['job']['job_category']['default'] = 22; // this needs to the default category ID
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment