Skip to content

Instantly share code, notes, and snippets.

@imfaisalkh
Created October 8, 2019 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imfaisalkh/d518d890288972d19f59ddf5ebc12136 to your computer and use it in GitHub Desktop.
Save imfaisalkh/d518d890288972d19f59ddf5ebc12136 to your computer and use it in GitHub Desktop.
Capstone - Remove "Experience" Field & Output
#-----------------------------------------------------------------#
# Remove "Experience" Field
#-----------------------------------------------------------------#
function remove_default_experience_field() {
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_experience_field', 10 );
remove_filters_with_method_name( 'job_manager_job_listing_data_fields', 'admin_job_experience_field', 10 );
}
add_action( 'init', 'remove_default_experience_field' );
#-----------------------------------------------------------------#
# Remove "Experience" Output
#-----------------------------------------------------------------#
function remove_experience_output() {
remove_filters_with_method_name( 'single_job_listing_meta_start', 'job_experience_meta', 10 );
}
add_action( 'init', 'remove_experience_output' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment