[wp-trac] [WordPress Trac] #36687: Feature to override WP_Query to provide results from other source

WordPress Trac noreply at wordpress.org
Tue Jun 7 10:03:06 UTC 2016


#36687: Feature to override WP_Query to provide results from other source
-----------------------------------+--------------------------
 Reporter:  jpdavoutian            |       Owner:  jpdavoutian
     Type:  feature request        |      Status:  assigned
 Priority:  normal                 |   Milestone:  4.6
Component:  Query                  |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+--------------------------

Comment (by jpdavoutian):

 @boonebgorges I have tested the solution and it works really great.

 My only concern is about bypassing `pre_posts_query`. I have worked out a
 solution for my case using the filter and a class variable. Maybe not the
 ideal solution but it was the only one that I could think of.
 I'm not sure how other plugins could make any use of this in case they
 need the original query.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36687#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list