Skip to content

Allow extended orderby values for all publicly queryable post types #110

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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

ocean90
Copy link

@ocean90 ocean90 commented Mar 13, 2025

This fix makes it possible to use the extended orderby values for post types which are registered with show_in_rest = true, public = false, and publicly_queryable = true.

This is basically the same as used in

?.filter( ( { viewable } ) => viewable )
.

Related: humanmade/query-filter#12

@ryanwelcher ryanwelcher added the enhancement New feature or request label Mar 13, 2025
Copy link
Owner

@ryanwelcher ryanwelcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks for submitting it!

@ryanwelcher ryanwelcher added this to the 4.1.1 milestone Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants