One way is to list all the posts and search using [has_block][1] but it seems inefficient. Is there a faster way to do this?

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.