Skip to content

Instantly share code, notes, and snippets.

@wpspeak
Last active April 16, 2019 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpspeak/508aed37e276c520ec09 to your computer and use it in GitHub Desktop.
Save wpspeak/508aed37e276c520ec09 to your computer and use it in GitHub Desktop.
Rename fields on Front-end (WP Job Manager Plugin)
<?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