MainQuery final class
Minn\Runtime\MainQuery · public/minn/src/Minn/Runtime/MainQuery.php · 23 lines
The query the request answers ($wp_query), as WordPress keeps it: the main query ($wp_the_query) unless a plugin swapped in another, an empty one made when there is none yet.
Public
| static | current(): Minn\Objects\Query# | The query being answered: $wp_query, else the main one, made empty when there is none. |
| static | searchQuery(mixed $escaped = true): mixed# | The search terms the query answers (get_search_query), as get_search_query leaves them, escaped for an attribute unless asked not to be. |
Nothing matches.