WordPress at a glance
function is not described

get_privacy_policy_template() WP 5.2.0

Retrieve 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.

Code of get_privacy_policy_template() WP 5.7

<?php
function get_privacy_policy_template() {
	$templates = array( 'privacy-policy.php' );

	return get_query_template( 'privacypolicy', $templates );
}