Socialking

Untitled

Dec 3rd, 2021
824
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function dotspice_remove_p_tags($content)
  2. {
  3.     if (is_singular('page')) {
  4.         remove_filter('the_content', 'wpautop');
  5.         remove_filter('the_excerpt', 'wpautop');
  6.     }
  7.     return $content;
  8. }
  9. add_filter('the_content', 'dotspice_remove_p_tags', 0);
RAW Paste Data