Skip to content

Instantly share code, notes, and snippets.

@davoraltman
Created June 7, 2017 11:27
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 davoraltman/7411a00a016460b1a58098a714fbbc08 to your computer and use it in GitHub Desktop.
Save davoraltman/7411a00a016460b1a58098a714fbbc08 to your computer and use it in GitHub Desktop.
// Add your own function to filter the fields
add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields' );
// 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( $fields ) {
// Here we target one of the job fields (job_title) and change it's label
$fields['job']['job_description']['description'] = "Note: Use headings to make your advert stand out. To see example headings and listing <a href='http://example.com'>click here</a>.";
// 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