Check what Gutenberg blocks are in post_content

Question

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="https://www.wptricks.com/question/check-what-gutenberg-blocks-are-in-post_content/">

Check what Gutenberg blocks are in post_content</a>
0
, Jeffrey von Grumbkow 1 week 0 Answers 21 views 0

Leave an answer