Skip to main content
fixed grammar, corrected spelling, added explaination, formatted code
Source Link

Don'tNo need to install any plugin, you can use this:

$queried_object = get_queried_object();
var_dump( $queried_object );

Source: https://codex.wordpress.org/Function_Reference/get_queried_objectCodex

Don't need to install any plugin, you can use this:

$queried_object = get_queried_object();
var_dump( $queried_object );

Source: https://codex.wordpress.org/Function_Reference/get_queried_object

No need to install any plugin, you can use this:

$queried_object = get_queried_object();
var_dump( $queried_object );

Source: Codex

Source Link

Don't need to install any plugin, you can use this:

$queried_object = get_queried_object();
var_dump( $queried_object );

Source: https://codex.wordpress.org/Function_Reference/get_queried_object