[wp-trac] [WordPress Trac] #35476: Allow posts to be filtered before return when `fields` parameter is used with `WP_Query`

WordPress Trac noreply at wordpress.org
Wed May 1 19:03:08 UTC 2024


#35476: Allow posts to be filtered before return when `fields` parameter is used
with `WP_Query`
-------------------------------------------------+-------------------------
 Reporter:  tlovett1                             |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Query                                |     Version:
 Severity:  normal                               |  Resolution:  wontfix
 Keywords:  dev-feedback has-patch has-unit-     |     Focuses:
  tests needs-dev-note reporter-feedback needs-  |
  refresh close                                  |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * status:  accepted => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Thank you @JeffPaul @felipeelia for confirming that `posts_pre_query`
 filter does indeed provide the means to check the fields. I'll close this
 ticket as `wontfix`.

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


More information about the wp-trac mailing list