WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50424, comment 4


Ignore:
Timestamp:
06/18/2020 06:22:50 PM (12 months ago)
Author:
pbiron
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50424, comment 4

    initial v1  
    1 The are 2 template tags than be used by themes/plugins: [https://developer.wordpress.org/reference/functions/get_the_privacy_policy_link/ get_the_privacy_policy_link()] and [https://developer.wordpress.org/reference/functions/the_privacy_policy_link/ the_privacy_policy_link()], e.g., to add the privacy policy to the site's footer.
     1The are 2 template tags than be used by themes/plugins: [https://developer.wordpress.org/reference/functions/get_the_privacy_policy_link/ get_the_privacy_policy_link()] and [https://developer.wordpress.org/reference/functions/the_privacy_policy_link/ the_privacy_policy_link()], e.g., to add the privacy policy to the site's footer (or any other template).
    22
    33**Note:** those template tags are not currently listed on [https://developer.wordpress.org/themes/references/list-of-template-tags/#link-tags List of Template Tags].  I've inquired about the best way to get them list there.
    44
    5 That said, a non-technical user can easily add a link to the privacy policy page in the block editor (or a Text widget).  Just type the text you want, click the Link icon on the block's toolbar, search for "privacy" and select the privacy policy page.
     5That said, a non-technical user can easily add a link to the privacy policy page in the block editor (or a Text widget).  Just type the text you want, click the Link icon on the block's toolbar, search for "privacy" (or whatever you named your privacy policy page) and select the privacy policy page...just as you would link to any other page/post from within the block editor.
    66
    77Of course, after creating a link as above, if you then change which page is your privacy policy page, then you'd have to manually update the links.