privacy_policy_url хук-фильтрWP 4.9.6

Filters the URL of the privacy policy page.

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

add_filter( 'privacy_policy_url', 'wp_kama_privacy_policy_url_filter', 10, 2 );

/**
 * Function for `privacy_policy_url` filter-hook.
 * 
 * @param string $url            The URL to the privacy policy page. Empty string if it doesn't exist.
 * @param int    $policy_page_id The ID of privacy policy page.
 *
 * @return string
 */
function wp_kama_privacy_policy_url_filter( $url, $policy_page_id ){

	// filter...
	return $url;
}
$url(строка)
The URL to the privacy policy page. Empty string if it doesn't exist.
$policy_page_id(int)
The ID of privacy policy page.

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

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

Где вызывается хук

get_privacy_policy_url()
privacy_policy_url
wp-includes/link-template.php 4706
return apply_filters( 'privacy_policy_url', $url, $policy_page_id );

Где используется хук в WordPress

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