Skip to content

Instantly share code, notes, and snippets.

@imfaisalkh
Created May 29, 2019 23:17
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/3b85c02ac10110ddd25a746f9ab4bff8 to your computer and use it in GitHub Desktop.
Save imfaisalkh/3b85c02ac10110ddd25a746f9ab4bff8 to your computer and use it in GitHub Desktop.
Capstone - Modify "Job Qualification" Options
#-------------------------------------------------------------------------------#
# 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