Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function disable_mce_wptextpattern( $opt ) {
- if ( isset( $opt['plugins'] ) && $opt['plugins'] ) {
- $opt['plugins'] = explode( ',', $opt['plugins'] );
- $opt['plugins'] = array_diff( $opt['plugins'] , array( 'wptextpattern' ) );
- $opt['plugins'] = implode( ',', $opt['plugins'] );
- }
- return $opt;
- }
- add_filter( 'tiny_mce_before_init', 'disable_mce_wptextpattern' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement