Technical Docs

Search Documentation

Function: tribe_get_global_query_object

Grabs the $wp_query global in a safe way with some fallbacks that help prevent fatal errors on sites where themes or other plugins directly manipulate the $wp_query global.

Located at src/functions/utils.php (Line: 170)

Return value summary

(object) The $wp_query, the $wp_the_query if $wp_query empty, null otherwise.

Examples

object tribe_get_global_query_object ( )