Created
May 17, 2015 15:45
-
-
Save mikejolley/76d8b538fe489377793b to your computer and use it in GitHub Desktop.
How to define a custom template file for a job manager field
This file contains 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_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