Answers for "wordpress remove p from content"

0

wordpress remove p from content

// Prevent WP from adding <p> tags on all post types
function disable_wp_auto_p( $content ) {
  remove_filter( 'the_content', 'wpautop' );
  remove_filter( 'the_excerpt', 'wpautop' );
  return $content;
}
add_filter( 'the_content', 'disable_wp_auto_p', 0 );
Posted by: Guest on September-01-2020

Code answers related to "wordpress remove p from content"

Browse Popular Code Answers by Language