get_privacy_policy_template()
Retrieves path of Privacy Policy page template in current or parent template.
The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'} and {@see '$type_template'} dynamic hooks, where $type is 'privacypolicy'.
No Hooks.
Return
String
. Full path to privacy policy template file.
Usage
get_privacy_policy_template();
Notes
- See: get_query_template()
Changelog
Since 5.2.0 | Introduced. |
get_privacy_policy_template() get privacy policy template code WP 6.4.3
function get_privacy_policy_template() { $templates = array( 'privacy-policy.php' ); return get_query_template( 'privacypolicy', $templates ); }