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

Allow taxonomies with publicly_queryable=true to be used as a filter #11

Open
ocean90 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #12
Open

Allow taxonomies with publicly_queryable=true to be used as a filter #11

ocean90 opened this issue Jan 8, 2025 · 0 comments · May be fixed by #12

Comments

@ocean90
Copy link

ocean90 commented Jan 8, 2025

Currently only taxonomies which are public=true can be added as a filter:

).filter( ( taxonomy ) => taxonomy.visibility.public );

I think the proper check would be publicly_queryable=true just like the editor uses in various cases, see https://github.com/search?q=repo%3AWordPress%2Fgutenberg%20publicly_queryable&type=code. This allows to have non-public but still publicly queryable taxonomies to be used as a filter. Happy to provide a PR if there are no objections.

@ocean90 ocean90 linked a pull request Jan 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant