Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_filter( 'content_save_pre', 'wpp_clean_google_docs' );
- function wpp_clean_google_docs( $content ) {
- if ( ! ( 'transcript' == get_post_type() ) ) {
- return $content;
- }
- $search = array( ' ',
- '</span>'
- );
- $content = str_replace( $search, '', $content );
- return preg_replace( '/<span[^>]+\>/i', '', $content );
- }
Add Comment
Please, Sign In to add comment