Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created May 17, 2015 15:45
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/76d8b538fe489377793b to your computer and use it in GitHub Desktop.
Save mikejolley/76d8b538fe489377793b to your computer and use it in GitHub Desktop.
How to define a custom template file for a job manager field
add_filter( 'job_manager_locate_template', 'custom_field_job_manager_locate_template', 10, 3 );
function custom_field_job_manager_locate_template( $template, $template_name, $template_path ) {
if ( 'your-template-name' === $template_name ) {
return 'path-to-your-field';
}
return $template;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment