Closed timohubois closed 3 years ago
Thanks for your submission @timohubois. What's a typical use case where you find this helpful? On first sight, to me it's a link like any other on a website.
@steffenbew i often use this shortcode inside cookie banners.
The main advantage is, that the link will be build automatically and it will always work even if on permalink change.
@timohubois Okay, I understand. However, I feel like we would be opening up a new feature category with this type of shortcode.
I think when a privacy policy link is required in code, the WordPress core function get_privacy_policy_url could be suitable.
When a privacy policy link is required in a Wysiwyg editor, I would leave redirection functionality to the WordPress core or plugins.
I just want to be careful with adding new features and functionalities, in favor of complexity and learning curve.
@steffenbew I understand and agree with you.
🙏 Thanks for understanding!
Added a new shortcode to link to the privacy policy page. I decided to always show an output, so it is possible to use this shortcode inside paragraphs without breaking the context if the privacy policy page is not setup inside wordpress itself.