Skip to content

Instantly share code, notes, and snippets.

@kjohnson
Last active August 31, 2017 11:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
<?php
function my_plugins_loaded(){
$posts = get_posts();
}
add_action( 'plugins_loaded', 'my_plugins_loaded' );
function my_parse_query(){
$var = get_query_var( 'foo', false );
}
add_action( 'parse_query', 'my_parse_query' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment