the_privacy_policy_link( string $before = '', string $after = '' )
Displays the privacy policy link with formatting, when applicable.
Parameters
-
$before
string Optional -
Display before privacy policy link.
Default:
''
-
$after
string Optional -
Display after privacy policy link.
Default:
''
Source
File: wp-includes/link-template.php
.
View all references
function the_privacy_policy_link( $before = '', $after = '' ) {
echo get_the_privacy_policy_link( $before, $after );
}
Changelog
Version | Description |
---|---|
4.9.6 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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):