privacy_policy_url WordPress Filter Hook

The privacy_policy_url hook allows you to specify a URL for your site's privacy policy. This is useful if you want to link to your privacy policy from your site's header or footer.

apply_filters( 'privacy_policy_url', string $url, int $policy_page_id ) #

Filters the URL of the privacy policy page.


Parameters

$url

(string)The URL to the privacy policy page. Empty string if it doesn't exist.

$policy_page_id

(int)The ID of privacy policy page.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More