Overwrite Templates in Plugin
-
Hello,
i would like to overwrite some templates in an own plugin, because we are using the child theme for different pages and we want to divide function and design.I found this site in the documentation: https://wpjobmanager.com/document/template-overrides/
where there is a short explanation to call the functions of the filter hook:
return apply_filters( ‘job_manager_locate_template’, $template, $template_name, $template_path );Cann you give me an example on how to set the attribute values? this is really unclear/missing documentation and i can’t find the filter hook in the core code. How to set:
$template, –> what should this be?
$template_name, –> with .php or not?
$template_path –> full path or what?Thank you,
PS
- The topic ‘Overwrite Templates in Plugin’ is closed to new replies.