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 consistent filtering of datasource items #696

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ethitter
Copy link

The term datasource already includes a filter on its get_items() return value; this carries that to the remaining datasources. Additionally, I've introduced a filter on get_items_for_ajax() in case that output needs to be modified in response to changes made via the get_items() filters.

#575 is related, but more-narrowly focused. If this PR is accepted, #575 can likely be closed.

ethitter added a commit to alleyinteractive/fm-zones that referenced this pull request Feb 16, 2018
Until alleyinteractive/wordpress-fieldmanager#696 or something like it is available, we need a custom datasource to manipulate its output.
Copy link
Contributor

@kjbenk kjbenk left a comment

Choose a reason for hiding this comment

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

This looks good, but it would be nice to have proper filter docblocks for each of the new filters :)

montchr pushed a commit to spiritedmedia/wordpress-fieldmanager that referenced this pull request Oct 23, 2018
Integrate upstream PR alleyinteractive#696 "Allow consistent filtering of datasource items"
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 this pull request may close these issues.

2 participants