daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. add_action( 'after_setup_theme', 'remove_the_wpautop_function' );  
  3.  
  4. function remove_the_wpautop_function() {
  5.     remove_filter( 'the_content', 'wpautop' );
  6.    // remove_filter( 'the_excerpt', 'wpautop' );
  7. }
  8.  
  9.  
  10.  // to remove auto generated p tag only in amp site of ampforwp plugin then you can use the pre_amp_render_post hook
  11.   //add_action( 'pre_amp_render_post', 'remove_the_wpautop_function_amp' );
  12.  
  13.   ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top