Skip to content

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