Last active
May 29, 2019 23:03
-
-
Save imfaisalkh/6bf4ef3b1da5fe35331b0b3a8a1dca1e to your computer and use it in GitHub Desktop.
Capstone - Modify "Career Level" Options
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
#-------------------------------------------------------------------------------# | |
# Capstone - Modify "Career Level" Options | |
#-------------------------------------------------------------------------------# | |
// Remove Existing "Career Level" Options | |
function remove_default_career_level_output() { | |
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_career_level_field' ); | |
} | |
add_action( 'init', 'remove_default_career_level_output' ); | |
// Add New "Career Level" Options | |
function capstone_career_level_args( $args ) { | |
// MODIFY THESE OPTIONS HERE | |
$args = array( | |
'', | |
'Intern' => 'Intern', | |
'Assistant' => 'Assistant', | |
'Supervisor' => 'Supervisor', | |
'Manager' => 'Manager', | |
'Senior Manager' => 'Senior Manager', | |
'Director' => 'Director', | |
'Executive' => 'Executive' | |
); | |
return $args; | |
} | |
add_filter( 'capstone_job_career_level_options', 'capstone_career_level_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment