Displays the privacy policy link with formatting, when applicable.
Parameters
$before
stringoptional- Display before privacy policy link.
Default:
''
$after
stringoptional- Display after privacy policy link.
Default:
''
Source
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):