Created
February 22, 2017 17:51
-
-
Save rali14/7d0935db121d1816f173fc1e6cfc5090 to your computer and use it in GitHub Desktop.
Add opentable field to the backend
This file contains hidden or 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( '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']['opentable']['label'] = "OpenTable Embed"; | |
// 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