Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.
Within the plugin folder there is a ‘templates’ directory where frontend views are stored. This includes, for example, the job form and form fields. These templates get loaded by WP Job Manager when it needs to display content:
In the Form Fields subdirectory (../templates/form-fields), the templates are:
In the Emails subdirectory (../templates/emails), the templates are:
- email-footer.php plain
↑ Back to Top Overriding templates via a theme
Template files can be overridden via your theme should you wish to customise them. To override a template, move it to
yourtheme/job_manager/, keeping the path within ‘templates’ intact.
For example, if I wanted to override
I would copy it to
mytheme/job_manager/job-filters.php and edit my theme’s version.
Please note, if these files are updated in the core plugin, you may need to update your custom version in the future to maintain compatibility. Therefore it is advised to only override the template files you need to customise.
↑ Back to Top Overriding templates through code
Plugin developers can also override templates by filtering the ‘job_manager_locate_template’ filter.
return apply_filters( 'job_manager_locate_template', $template, $template_name, $template_path );
Returning your own template path will override all others.
To override the template files of our various add-ons, see this document.