Created
May 29, 2019 23:17
-
-
Save imfaisalkh/3b85c02ac10110ddd25a746f9ab4bff8 to your computer and use it in GitHub Desktop.
Capstone - Modify "Job Qualification" 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 Qualification" Options | |
#-------------------------------------------------------------------------------# | |
// Remove Existing "Qualification" Options | |
function remove_default_qualification_output() { | |
remove_filters_with_method_name( 'submit_job_form_fields', 'frontend_job_qualification_field' ); | |
} | |
add_action( 'init', 'remove_default_qualification_output' ); | |
// Add New "Qualification" Options | |
function capstone_qualification_args( $args ) { | |
// MODIFY THESE OPTIONS HERE | |
$args = array( | |
'', | |
'Associate Degree' => 'Associate Degree', | |
'Bachelor Degree' => 'Bachelor Degree', | |
'Master Degree' => 'Master Degree', | |
'Doctorate Degree' => 'Doctorate Degree', | |
'Certificate' => 'Certificate', | |
'Diploma' => 'Diploma' | |
); | |
return $args; | |
} | |
add_filter( 'capstone_job_qualification_options', 'capstone_qualification_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment