naeemqaswar
11/14/2016 - 10:22 AM

WPautop Control - This functionality disables WordPress page editor's auto formatting feature and let us put our raw html code in it, witho

WPautop Control

  • This functionality disables WordPress page editor's auto formatting feature and let us put our raw html code in it, without getting worry about creation of any extra formatting tags (i.e

    or
    )

// Prevent wordpress to auto generate HTML Tags, when placing code in page/post editor. Place below hook in functions.php

remove_filter( 'the_content', 'wpautop' );

// Documentation
https://codex.wordpress.org/Function_Reference/wpautop