Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
One way is to list all the posts and search using [has_block] but it seems inefficient. Is there a faster way to do this?
So I had to extend the wordpress rest api by adding a custom endpoint that filtered all the posts using has_block
and return the results.
Required, but never shown