Created
October 9, 2023 06:24
-
-
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
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
<?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