2

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

2

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!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.