Created
September 4, 2012 22:53
-
-
Save joehoyle/3627668 to your computer and use it in GitHub Desktop.
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
function jh_plugin_init() { | |
if ( function_exists( 'w4tc_cdn' ) ) | |
add_action( 'load-post-new.php', '_jh_add_parse_query_action' ); | |
} | |
add_action( 'init', 'jh_plugin_init' ); | |
function _jh_add_parse_query_action() { | |
add_action( 'parse_query', '_jh_add_query_var_to_parse_query' ); | |
} | |
function _jh_add_query_var_to_parse_query( $wp ) { | |
$wp->query_vars['post_type'] = 'page'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typo in the filename (controved.php) :-)