Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'after_setup_theme', 'remove_the_wpautop_function' );
- function remove_the_wpautop_function() {
- remove_filter( 'the_content', 'wpautop' );
- // remove_filter( 'the_excerpt', 'wpautop' );
- }
- // to remove auto generated p tag only in amp site of ampforwp plugin then you can use the pre_amp_render_post hook
- //add_action( 'pre_amp_render_post', 'remove_the_wpautop_function_amp' );
- ?>
Add Comment
Please, Sign In to add comment