Skip to content

Instantly share code, notes, and snippets.

@imfaisalkh
Last active May 29, 2019 23:03
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/6bf4ef3b1da5fe35331b0b3a8a1dca1e to your computer and use it in GitHub Desktop.
Save imfaisalkh/6bf4ef3b1da5fe35331b0b3a8a1dca1e to your computer and use it in GitHub Desktop.
Capstone - Modify "Career Level" Options
#-------------------------------------------------------------------------------#
# 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