Skip to content

Instantly share code, notes, and snippets.

@kjohnson
Last active August 31, 2017 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjohnson/c93e6d5701778149bcf53a8c11afe470 to your computer and use it in GitHub Desktop.
Save kjohnson/c93e6d5701778149bcf53a8c11afe470 to your computer and use it in GitHub Desktop.
<?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