• Skip to primary navigation
  • Skip to main content
OsomCode

OsomCode

Awesome code tutorials for WordPress and Genesis

  • Subscribe
  • My account
    • Edit profile
    • Favorites
    • Update credit card
  • Login

Display reusable blocks in WordPress administration menu

Discover in this tutorial how to get reusable blocks displayed in the WordPress admin menu without plugins.

By default, to access the reusable blocks, you must be in the editor.

That is, you have to enter inside a post (or page) and from the top left menu access “Manage all reusable blocks”.

This can be a bit cumbersome, don’t you think?

Access the reusable blocks from the editor
Access the reusable blocks from the editor.

Luckily, with a little bit of code you can get the reusable blocks “exposed” in the WordPress admin menu, making them much more accessible.

If you’re already taking advantage of reusable blocks, I’m sure this tutorial will come in handy.

Snippet for displaying reusable blocks from the WordPress admin

Add the following code snippet to your functionality plugin:

To see this and another 883 code snippets of this website, login or subscribe here.

You got it.

Now you can quickly access the reusable blocks from the WordPress admin menu.

Show reusable blocks in the WordPress admin.
Show reusable blocks in the WordPress admin.

Conclusions

Do you want to a faster access to the reusable blocks you’ve created in WordPress? Now you know how to do it by adding a simple snippet.

Any questions? I read you in the comments.

And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉

Admin area Page PHP WordPress

To leave read and make questions about this code, you can login or register.

  • About OsomCode
  • FAQ
  • Contact

Legal Notice · Privacy Policy · Cookie Policy · Terms and conditions
Copyright © 2023

Lost your password?