Add a unique ID or NAME to target queries .
|Reported by:||krembo99||Owned by:|
|Cc:||mpretty@…, mike@…, nashwan.doaqan@…|
I am not sure if this is enhancement or feature request .
wordpress allows us to change / filter queries with various methods , for example the pre_get_posts(). ( e.g. $query->set ($args) ).
But in today´s wp ecosystem, there are so many themes, plugins, widgets etc. that modify the query or add custom queries, that it had become very difficult to target a specific query, where The available conditions might not be enough. (is_admin, is_main_query etc.. )
The suggestion here is to add an identifier (ID or specific NAME) to a query , much like with textdomains or actions.
In this manner, targeting a query becomes a breeze something along the lines of
Each developer has struggled one time or another with custom queries and with targeting 3rd party queries .
This feature / enhancement could potentially change all that by allowing a simple way to address custom queries .