WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Query::is_privacy_policy() public WP 5.2.0

Is the query for the Privacy Policy page?

This is the page which shows the Privacy Policy content of your site.

Depends on the site's "Change your Privacy Policy page" Privacy Settings 'wp_page_for_privacy_policy'.

This function will return true only on the page you set as the "Privacy Policy page".

Это метод класса: WP_Query{}

Хуков нет.

Возвращает

true/false. Whether the query is for the Privacy Policy page.

Использование

$WP_Query = new WP_Query();
$WP_Query->is_privacy_policy();

Список изменений

С версии 5.2.0 Введена.

Код WP_Query::is_privacy_policy() WP 5.5.1

wp-includes/class-wp-query.php
<?php
public function is_privacy_policy() {
	if ( get_option( 'wp_page_for_privacy_policy' )
		&& $this->is_page( get_option( 'wp_page_for_privacy_policy' ) )
	) {
		return true;
	} else {
		return false;
	}
}