radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Add privacy link and posts page link to UrlGenerator #72

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

Is your feature request related to a problem? Please describe. It's not easy to remember the functions to get the privacy and blog page links.

Describe the solution you'd like Methods added to the UrlGenerator class to make acessing these links simple. E.g. url()->privacyPolicy(), url()->postsPage(). There are other links that could be added, such as archives, tag, category pages.

Describe alternatives you've considered Using the built in functions get_post_type_archive_link, get_privacy_policy_url.

Additional context The built in functions are difficult to remember and not always consistent. Adding the "special" pages to the UrlGenerator class will solve these issues.