Custom block – check if post exists

Question

I have custom block with saved attr of post ID. How can I verify from block definition that post with that ID exists in Wordpres.

My aim is to warn user if post with saved ID exists no more.

0
, , Tomas Vavrinka 2 years 2019-12-28T10:20:01-05:00 0 Answers 88 views 0

Leave an answer

Browse
Browse