apply_filters( ‘the_privacy_policy_link’, string $link, string $privacy_policy_url )

Filters the privacy policy link.

Parameters

$linkstring
The privacy policy link. Empty string if it doesn’t exist.
$privacy_policy_urlstring
The URL of the privacy policy. Empty string if it doesn’t exist.

Source

$link = apply_filters( 'the_privacy_policy_link', $link, $privacy_policy_url );

Changelog

VersionDescription
4.9.6Introduced.

User Contributed Notes

  1. Skip to note 3 content

    This example shows how to delete the link of privacy policy in login page.

    function wporg_delete_privacy_policy_link_on_loginpage( $link, $privacy_policy_url ) {
        if ( 'wp-login.php' === $GLOBALS['pagenow'] ) {
            return null;
        }
    }
    add_filter( 'the_privacy_policy_link', 'wporg_delete_privacy_policy_link_on_loginpage', 10, 2 );

You must log in before being able to contribute a note or feedback.