Skip to content

Instantly share code, notes, and snippets.

@Daniel-Walsh
Created May 1, 2020 05:02
Show Gist options
  • Save Daniel-Walsh/0c47593fb36ff6d23f92cdbeac7ee096 to your computer and use it in GitHub Desktop.
Save Daniel-Walsh/0c47593fb36ff6d23f92cdbeac7ee096 to your computer and use it in GitHub Desktop.
Dump the query vars of the current page #wordpress #php
<?php
global $wp_query;
var_dump( $wp_query->query_vars );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment