Last active
June 13, 2019 14:02
-
-
Save imfaisalkh/41b912bd0288f3ef9f31db691184144c to your computer and use it in GitHub Desktop.
Capstone - Remove "Salary" Field & Output
This file contains 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
<?php | |
#-----------------------------------------------------------------# | |
# Remove "Salary" Field | |
#-----------------------------------------------------------------# | |
function remove_default_salary_field() { | |
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_salary_field', 10 ); | |
remove_filters_with_method_name( 'job_manager_job_listing_data_fields', 'admin_job_salary_field', 10 ); | |
} | |
add_action( 'init', 'remove_default_salary_field' ); | |
#-----------------------------------------------------------------# | |
# Remove "Salary" Output | |
#-----------------------------------------------------------------# | |
function remove_salary_output() { | |
remove_filters_with_method_name( 'single_job_listing_meta_start', 'job_salary_meta', 10 ); | |
} | |
add_action( 'init', 'remove_salary_output' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment