Since the WordPress 4.3 version was released there are these new things called formatting shortcuts. They can be helpful but I find them mostly annoying. Is there anyway to disable these new formatting shortcuts?

Thanks in advance!

1 Answer
1

Yes, there is very well a way to disable these formatting shortcuts. You can do so by using this simple little piece of PHP code.

<?php
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' );
?>

Hopefully that helps!

Leave a Reply

Your email address will not be published. Required fields are marked *