[ad_1]
As a developer, I have started to use custom blocks as a way to embed custom code into a site. There seem to be many good reasons to do so…. I would have thought to see more mention of this… What’s your experience and what should I watch for?
[ad_2]
I mean…isn’t every custom block custom code, by definition?
My concern is that the “older” ways either put the code in the db (usually if you are using a “code editor” kind of plugin.
Or all the code goes into functions.php. I like using custom blocks and having separate code components that I can check into git separately and reuse separately.