[wp-trac] [WordPress Trac] #36687: Feature to override WP_Query to provide results from other source
WordPress Trac
noreply at wordpress.org
Fri Apr 29 20:40:35 UTC 2016
#36687: Feature to override WP_Query to provide results from other source
-------------------------------+------------------------------
Reporter: jpdavoutian | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by boonebgorges):
* keywords: => reporter-feedback
Comment:
Hi @jpdavoutian - Thanks for the ticket, and welcome to WordPress Trac!
It would be helpful to hear more about how you think this feature would be
implemented, and how you'd use it. There are a number of plugins doing
something similar to what you've suggested, and they're "tricking"
`WP_Query` into fetching content from elsewhere using the `posts_request`
and `the_posts` filters. See eg
https://github.com/10up/ElasticPress/blob/develop/classes/class-ep-wp-
query-integration.php#L55 Can you say more about how your approach would
differ, and what advantages it would offer beyond these existing
techniques?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36687#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list