Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#52069 closed feature request (duplicate)

Define ID for any query

Reported by: hamedmoodi's profile 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
4 years 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 4 years ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.