5

The Gutenberg plugin and the menu

 1 year ago
source link: https://blog.josemcastaneda.com/2023/01/30/the-gutenberg-plugin-and-the-menu/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The Gutenberg plugin and the menu

On

January 30, 2023

By

In

Tagged as:

For quite some time I have been using the latest version of the Gutenberg plugin because I like to torture myself apparently. Ever since that plugin was introduced there has been a menu item that would drive me a little crazy at times. I’m sure some have seen it too and probably still have that menu item present. The one I’m talking about is the Gutenberg menu that gets added to show some demo and additional experimental things.

To be honest I haven’t been up to speed with many of the things that are being tested and, let’s be honest here, I probably won’t for this site. I’m sure there is some usage case for other sites though just not for me.

I wound up finally removing that menu item with a small snippet of code.

add_action( 'plugins_loaded', function(){
remove_action( 'admin_menu', 'gutenberg_menu', 9 );
});

Literally just a few lines of code and it was gone. I’m just happy to not see that option when I am in the dashboard. I can’t tell you why it bothers me but it does.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK