Skip to content

Instantly share code, notes, and snippets.

@michael-cannon
Created October 15, 2013 05:42
Show Gist options
  • Save michael-cannon/6987053 to your computer and use it in GitHub Desktop.
Save michael-cannon/6987053 to your computer and use it in GitHub Desktop.
Filter `cbqe_post_types_ignore` Customize the ignored post_types array.
<?php
add_filter( 'cbqe_post_types_ignore', 'bhc_cbqe_post_types_ignore' );
function bhc_cbqe_post_types_ignore( $post_types ) {
foreach ( $post_types as $key => $value ) {
if ( 'page' == $value )
unset( $post_types[ $key ] );
}
return $post_types;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment