How to register my custom block?

[ad_1]

Forward: I've acquired this project when it was 2/3 complete and they fired their dev firm. I'm very familiar with web dev, but not very familiar with WordPress dev. I've figured out the majority of how they had everything setup, but this one thing is alluding me. I'd greatly appreciate your help!

Question: The former dev form created a bunch of custom block templates for different page sub-sections that interact with ACF data. I've been able to modify these php templates successfully, but have had no luck creating a new one. Everything I research keeps pointing to Theme Block dev, but the files and code structure doent seem to follow that pattern. Namely, these templates are located under the theme, in a 'modules' folder. Also, I can find no trace of them in the roots block.json file, or any other file for that matter, or any of the database tables (except 1 hit in wp_posts).

https://preview.redd.it/yiu3pofomgjd1.png?width=411&format=png&auto=webp&s=3f8bd3a232b29a588800866dd629b2c297b046a0

So what I've done is copy one of the templates that was close to what I needed, made whatever DOM/CSS changes, and saved as a new filename. Below is a clip of one of these templates…

https://preview.redd.it/ycwj1qgxmgjd1.png?width=1072&format=png&auto=webp&s=907aa1376ab1841236028494b6629c9c6cf2ad8f

But the piece I can't figure out is how WordPress is registering these blocks. As you can see here, all of those module template files are listed here under the "Text" blocks (lower half)…

https://preview.redd.it/diq77aqfngjd1.png?width=359&format=png&auto=webp&s=e1a7e671f6ab02cea498d49d602d43dec2a36567

Can anyone help me figure out how these blocks are being registered?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer