Last active
April 16, 2019 14:18
-
-
Save wpspeak/508aed37e276c520ec09 to your computer and use it in GitHub Desktop.
Rename fields on Front-end (WP Job Manager Plugin)
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 | |
//* Rename fields on Job Submission form (WP Job Manager Plugin) | |
add_filter( 'submit_job_form_fields', 'wpspeak_submit_job_form_fields' ); | |
// You can see the fields which can be changed here: https://github.com/mikejolley/WP-Job-Manager/blob/v1.2.0/includes/forms/class-wp-job-manager-form-submit-job.php#L101 | |
function wpspeak_submit_job_form_fields( $fields ) { | |
// Here we target one of the job fields (job_title) and change it's label | |
$fields['job']['job_type']['label'] = "Level"; | |
$fields['company']['company_name']['label'] = "Name"; | |
$fields['company']['company_logo']['label'] = "Photo/Image"; | |
// 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