Created
February 22, 2017 17:47
-
-
Save rali14/bbabced9411dfe0fe4c4f2f74d26e8c3 to your computer and use it in GitHub Desktop.
OpenTable to Listify - Front End
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( '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']['opentable']['label'] = "OpenTable Embed"; // Notice I changed this to open table field. | |
// 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