Skip to content

Instantly share code, notes, and snippets.

@sparkalow
Created October 12, 2016 14:34
Show Gist options
  • Save sparkalow/20846716e6e8e39533f5e4d5aaeda2d6 to your computer and use it in GitHub Desktop.
Save sparkalow/20846716e6e8e39533f5e4d5aaeda2d6 to your computer and use it in GitHub Desktop.
Wordpress dump post query sql
function dump_request( $input ) {
var_dump($input);
return $input;
}
add_filter( 'posts_request', 'dump_request' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment