wppaste
WordPress

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

Since
4.9.6
Filters the privacy policy link.

Compatibility

WordPress
since 4.9.6
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

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

Where this hook fires · 1

  • wp-includes/link-template.php:4837get_the_privacy_policy_link()

Source code

	 *	 * @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.	 */	$link = apply_filters( 'the_privacy_policy_link', $link, $privacy_policy_url ); 	if ( $link ) {		return $before . $link . $after;	} 	return '';

Changelog

Introduced in 4.9.6. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.