Skip to content

Instantly share code, notes, and snippets.

@imfaisalkh
Created May 29, 2019 23:13
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/d1d5ed34293a36916975ba1be70c7b15 to your computer and use it in GitHub Desktop.
Save imfaisalkh/d1d5ed34293a36916975ba1be70c7b15 to your computer and use it in GitHub Desktop.
Capstone - Modify "Job Experience" Options
#-------------------------------------------------------------------------------#
# Capstone - Modify "Job Experience" Options
#-------------------------------------------------------------------------------#
// Remove Existing "Experience" Options
function remove_default_experience_output() {
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_experience_field' );
}
add_action( 'init', 'remove_default_experience_output' );
// Add New "Experience" Options
function capstone_experience_args( $args ) {
// MODIFY THESE OPTIONS HERE
$args = array(
'',
'0 - 2 Years' => '0 - 2 Years',
'2 - 3 Years' => '2 - 3 Years',
'3 - 5 Years' => '3 - 5 Years',
'5 - 6 Years' => '5 - 6 Years',
'6 - 7 Years' => '6 - 7 Years',
'7 - 8 Years' => '7 - 8 Years',
'8 - 9 Years' => '8 - 9 Years',
'9-10 Years' => '9-10 Years'
);
return $args;
}
add_filter( 'capstone_job_experience_options', 'capstone_experience_args' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment