the_privacy_policy_link( string $before = '', string $after = '' )
Displays the privacy policy link with formatting, when applicable.
Description
Parameters
- $before
-
(string) (Optional) Display before privacy policy link.
Default value: ''
- $after
-
(string) (Optional) Display after privacy policy link.
Default value: ''
Source
File: wp-includes/link-template.php
function the_privacy_policy_link( $before = '', $after = '' ) { echo get_the_privacy_policy_link( $before, $after ); }
Changelog
Version | Description |
---|---|
4.9.6 | Introduced. |
Sample code for theme integration, with
function_exists()
test to avoid fatal error on previous WordPress versions.HTML output example (the permalink and the anchor will be dynamically generated):