Created
August 26, 2014 03:02
-
-
Save JayWood/3c7c8683bc502cb575b3 to your computer and use it in GitHub Desktop.
dump the data as soon as it's available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Dump wp_query data | |
*/ | |
function jw_die(){ | |
global $wp_query; | |
wp_die( '<pre>' . print_r( $wp_query, true ) . '</pre>'); | |
} | |
add_action( 'wp', 'jw_die' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment