What would be the best way to conditionally filter the_content by custom post type?
This works, but I'm wondering if there is something simpler:
add_action( 'wp', 'kw_endo_filter_the_content' );
function kw_endo_filter_the_content() {
global $post;
if( 'faq' == get_post_type() ) {
remove_filter( 'the_content', 'wpautop' );
}
}