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

Filters the privacy policy link.

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

add_filter( 'the_privacy_policy_link', 'wp_kama_the_privacy_policy_link_filter', 10, 2 );

/**
 * Function for `the_privacy_policy_link` filter-hook.
 * 
 * @param string $link               The privacy policy link. Empty string if it doesn't exist.
 * @param string $privacy_policy_url The URL of the privacy policy. Empty string if it doesn't exist.
 *
 * @return string
 */
function wp_kama_the_privacy_policy_link_filter( $link, $privacy_policy_url ){

	// filter...
	return $link;
}
$link(строка)
The privacy policy link. Empty string if it doesn't exist.
$privacy_policy_url(строка)
The URL of the privacy policy. Empty string if it doesn't exist.

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

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

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

get_the_privacy_policy_link()
the_privacy_policy_link
wp-includes/link-template.php 4756
$link = apply_filters( 'the_privacy_policy_link', $link, $privacy_policy_url );

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

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