Skip to content

Instantly share code, notes, and snippets.

@joehoyle
Created September 4, 2012 22:56
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 joehoyle/3627693 to your computer and use it in GitHub Desktop.
Save joehoyle/3627693 to your computer and use it in GitHub Desktop.
add_action( 'init', function() {
if ( ! function_exists( 'w4tc_cdn' ) )
return;
add_action( 'load-post-new.php', function() {
add_action( 'parse_query', function( $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