Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Disable Visual Editor Formatting Shortcuts in WordPress 4.3

Don’t like the formatting shortcuts that were introduced in WordPress 4.3? Find it a bit distracting? Recently, one of our users asked us how to disable visual editor formatting shortcuts in WordPress. In this article, we will show you how to disable visual editor formatting shortcuts in WordPress 4.3.

Formatting shortcuts in WordPress visual editor

What are Formatting Shortcuts and How to Use Them?

WordPress 4.3 came with a new feature called formatting shortcuts. It allows users to quickly add common text formatting without removing their hands from the keyboard and without writing any HTML.

  • Using * or will start an unordered list.
  • Using 1. or 1) will start an ordered list.
  • Using # will transform into h1. ## for h2, ### for h3 and so on.
  • Using > will transform into blockquote.

Editor shortcuts

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Disabling Visual Editor Formatting Shortcuts

While we think that formatting shortcuts are awesome, some users are finding this feature a bit confusing and distracting.

If you want to disable the formatting shortcuts in WordPress, then follow the instructions below:

Copy and paste this code in your theme’s functions.php file or in a site-specific plugin.

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

This code simply removes text formatting shortcuts from your WordPress visual editor. Your other WordPress keyboard shortcuts will work as usual.

We hope this article helped you disable visual editor formatting shortcuts in WordPress 4.3 and later versions. You may also want to see these 14 tips for mastering the WordPress visual editor.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

7 CommentsLeave a Reply

  1. Rudy

    Excellent, and thank you! I am going to use this in our numerous WordPress installations. It’s a bit awkward to do it in each theme, but since we use child themes exclusively, it should be a one-time edit. Our staff will be pleased to know these ridiculous shortcuts are going to be disabled.

    • Rudy

      Actually, it was easier to do this as a plugin, as I can then deploy it in multisite to all sites in a network. Tested and working fine. Thanks again!

  2. Bill

    Awesome, thanks!

  3. Palla Sridhar

    Hello.
    I have a different problem. I’m trying to add “schema markup” code in Text editor of Wordpress post. But when I save it in Text view and go to Visual tab, its getting deleted. Is there a solution for this kind of problem.?

    • WPBeginner Support

      You will have to write it in text editor. Visual editor uses several functions to sanitize the code used by a user in posts.

      Admin

  4. Trish

    Thanks for this. I haven’t upgraded yet but I have very specific requirements for my list formatting and the shortcuts would interfere with this.

  5. Adrienne

    I love the shortcuts….. makes it fast and easy then going into the text editor and adding all the time.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.