Skip to content

Instantly share code, notes, and snippets.

@purethemes
Created October 9, 2023 06:24
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 purethemes/7e7020a0205094946c911f5e1cf26524 to your computer and use it in GitHub Desktop.
Save purethemes/7e7020a0205094946c911f5e1cf26524 to your computer and use it in GitHub Desktop.
Change text Skills field in Submit Resume form in WP Job Manager Resume Manager to dropdown. Add this code to your functions.php
<?php
add_filter('submit_resume_form_fields', 'change_skills_submit_resume_field');
// // This is your function which takes the fields, modifies them, and returns them
function change_skills_submit_resume_field($fields)
{
// Here we target one of the resume fields (skill) and change it
$fields['resume_fields']['resume_skills']['type'] = "term-multiselect";
$fields['resume_fields']['resume_skills']['taxonomy'] = "resume_skill";
$fields['resume_fields']['resume_skills']['placeholder'] = "List of relevant skills";
// And return the modified fields
return $fields;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment