Created
July 23, 2019 13:54
-
-
Save imfaisalkh/72dabae3eba13ae680e1f57f732b4259 to your computer and use it in GitHub Desktop.
Capstone - Remove "Career Level" Field & Output
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
#-----------------------------------------------------------------# | |
# Remove "Career Level" Field | |
#-----------------------------------------------------------------# | |
function remove_default_career_level_field() { | |
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_career_level_field', 10 ); | |
remove_filters_with_method_name( 'job_manager_job_listing_data_fields', 'admin_job_career_level_field', 10 ); | |
} | |
add_action( 'init', 'remove_default_career_level_field' ); | |
#-----------------------------------------------------------------# | |
# Remove "Career Level" Output | |
#-----------------------------------------------------------------# | |
function remove_career_level_output() { | |
remove_filters_with_method_name( 'single_job_listing_meta_start', 'job_career_level_meta', 10 ); | |
} | |
add_action( 'init', 'remove_career_level_output' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment