Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.