Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Remove auto format for Follow Up Emails
- */
- add_filter( 'the_content', function( $content ){
- if ( 'follow_up_email' === get_post_type() ) {
- remove_filter( 'the_content', 'wpautop' );
- remove_filter( 'the_excerpt', 'wpautop' );
- }
- return $content;
- }, 0 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement