WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#52069 closed feature request (duplicate)

Define ID for any query

Reported by: hamedmoodi Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.7
Component: Query Keywords:
Focuses: Cc:

Description

I use many custom wp_query in my website,
Now when I want to use 'pre_get_posts' for filter custom wp_queries, i have problem in determine target query with conditional tag such is_main_query, is_font_page, ...
I think if we determine ID for each custom wp_query some problem for determine target query will solved

Change History (1)

#1 @SergeyBiryukov
9 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this enhancement in #23833 and #17019.

Last edited 9 months ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.