Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created October 9, 2018 11:31
Show Gist options
  • Select an option

  • Save yousufansa/dca45dad45ecc4757cebc6229049d28c to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/dca45dad45ecc4757cebc6229049d28c to your computer and use it in GitHub Desktop.
Jobhunt - Remove Job Submit Form Fields
add_action( 'init', 'jobhunt_child_custom_function' );
if ( ! function_exists( 'jobhunt_child_custom_function' ) ) {
function jobhunt_child_custom_function() {
add_filter('submit_job_form_fields' , 'jobhunt_child_custom_submit_job_form_fields');
}
}
if ( ! function_exists( 'jobhunt_child_custom_submit_job_form_fields' ) ) {
function jobhunt_child_custom_submit_job_form_fields ($fields) {
unset ($fields['job']['job_listing_gender']);
unset ($fields['job']['job_listing_salary']);
return $fields;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment