How To Build PHP-Only Gutenberg Blocks In WordPress 7

PHP-only blocks are an ideal migration path for existing shortcodes. The render logic is often identical — the only difference is where the parameters come from.

As a very amateur and occasional dabbler in shortcodes & very simple plugins this looks interesting. It will need WordPress 7 and php 8.1. There are already quite a few how to articles out there already.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)