apply_filters( 'the_privacy_policy_link', string $link, string $privacy_policy_url )

Filters the privacy policy link.


Parameters

$link string
The privacy policy link. Empty string if it doesn't exist.
$privacy_policy_url string
The URL of the privacy policy. Empty string if it doesn't exist.

Top ↑

Source

File: wp-includes/link-template.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.9.6 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by fpesseas

    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.