[wp-trac] [WordPress Trac] #50424: Privacy Page Shortcode

WordPress Trac noreply at wordpress.org
Thu Jun 18 18:19:26 UTC 2020


#50424: Privacy Page Shortcode
-------------------------+------------------------------
 Reporter:  leehodson    |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Privacy      |     Version:  5.4.2
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by pbiron):

 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.

 **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.

 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.

 Of 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.

 Maybe a shortcode might be called for (a block would be nice, but since
 there still is no such thing as an "inline" block, a shortcode is probably
 more appropriate).  But as @carike said, such a shortcode/block is
 probably plugin territory.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50424#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list