Created
July 14, 2017 09:12
-
-
Save davoraltman/8f6ac85bb4ea88ba2dc156488f310584 to your computer and use it in GitHub Desktop.
Change job tagline field type
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
// Add your own function to filter the fields | |
add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields_dalt' ); | |
// This is your function which takes the fields, modifies them, and returns them | |
// You can see the fields which can be changed here: https://github.com/mikejolley/WP-Job-Manager/blob/master/includes/forms/class-wp-job-manager-form-submit-job.php | |
function custom_submit_job_form_fields_dalt( $fields ) { | |
// Here we target one of the job fields (job_title) and change it's label | |
$fields['company']['company_tagline']['type'] = 'textarea'; | |
// 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