Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Last active August 22, 2019 01:17
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 mikejolley/fff71a8f68a6de4956ca to your computer and use it in GitHub Desktop.
Save mikejolley/fff71a8f68a6de4956ca to your computer and use it in GitHub Desktop.
// Add your own function to filter the fields
add_filter( 'job_manager_job_listing_data_fields', 'custom_job_manager_job_listing_data_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/admin/class-wp-job-manager-writepanels.php
function custom_job_manager_job_listing_data_fields( $fields ) {
// Here we target one of the job fields (location) and change it's placeholder
$fields['_job_location']['placeholder'] = "Custom placeholder";
// 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