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

Add a way to read and modify the query generated by the Query Loop block #1

Closed
Tracked by #42616
sunyatasattva opened this issue Jul 29, 2022 · 1 comment
Closed
Tracked by #42616
Labels
enhancement New feature or request

Comments

@sunyatasattva
Copy link
Owner

sunyatasattva commented Jul 29, 2022

What problem does this address?

In order to properly extend the Query Loop block and allow further use-cases (such as special queries required to display custom post types and the attributes that extensions might add), we need a way to hook into the query object read by the children of the Query Loop block, to manipulate.

What is your proposed solution?

Adding a custom filter to build_query_vars_from_query_block should be sufficient. This function is used to construct the actual $query from the Query Loop block attributes and is the method currently used for all the Query Loop block children.

Meta

Story points: 2
COU: 3

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

No branches or pull requests

1 participant