Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Launch Your Store] Add generic function to determine if URL is a store page #45110

Closed
chihsuan opened this issue Feb 26, 2024 · 0 comments · Fixed by #45299
Closed

[Launch Your Store] Add generic function to determine if URL is a store page #45110

chihsuan opened this issue Feb 26, 2024 · 0 comments · Fixed by #45299
Assignees

Comments

@chihsuan
Copy link
Member

chihsuan commented Feb 26, 2024

Issue description

Add a generic function for determining if URL is a store page so that we can keep store pages in “Coming Soon” mode while keeping the rest of the site live.

Accept criteria

  • function should return true if URL is a store page, return false, otherwise

Store pages are defined as:

  • Shop Page
  • Cart Page
  • Checkout Page
  • My Account Page
  • Terms and Conditions Page
  • Privacy Policy Page

(the above page IDs can be determined from WooCommerce Settings)

Additionally, the following autogenerated pages should be included:

  • Product Categories (taxonomy=product_cat)
  • Product Tags (taxonomy=product_tag)
@chihsuan chihsuan changed the title Add generic function to determine if URL is a store page [Launch Your Store] Add generic function to determine if URL is a store page Feb 26, 2024
@chihsuan chihsuan self-assigned this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant