Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 74 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <?php
  2. add_filter( 'content_save_pre', 'wpp_clean_google_docs' );
  3.  
  4. function wpp_clean_google_docs( $content ) {
  5.     if ( ! ( 'transcript' == get_post_type() ) ) {
  6.         return $content;
  7.     }
  8.  
  9.     $search = array( '&nbsp;',
  10.         '</span>'
  11.     );
  12.  
  13.     $content = str_replace( $search, '', $content );
  14.  
  15.     return preg_replace( '/<span[^>]+\>/i', '', $content );
  16. }
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