Created
May 29, 2019 23:13
-
-
Save imfaisalkh/d1d5ed34293a36916975ba1be70c7b15 to your computer and use it in GitHub Desktop.
Capstone - Modify "Job Experience" 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 "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