Created
October 15, 2013 05:42
-
-
Save michael-cannon/6987053 to your computer and use it in GitHub Desktop.
Filter `cbqe_post_types_ignore` Customize the ignored post_types array.
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
<?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