leavlzi
11/18/2017 - 4:51 PM

Remove wpautop only for custom post types

/*-------------------------------------------
Remove wpautop only for custom post types
-------------------------------------------*/
 function wpc_remove_autop_for_posttype( $content )
{
    'newsletter' === get_post_type() && remove_filter( 'the_content', 'wpautop' );
    return $content;
}