Check what Gutenberg blocks are in post_content


I’m working on a design that has different styling if a certain Gutenberg block is present on a page. In other words, if the first block is a custom built Gutenberg block, the post_title is rendered elsewhere due to design choices made.

Is there any function in WordPress to get a list of all Gutenberg blocks present in the post_content?


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="">

Check what Gutenberg blocks are in post_content</a>
, Jeffrey von Grumbkow 3 months 0 Answers 48 views 0

Leave an answer