Support » Developing with WordPress » How to determine if a template has been deleted in gutenberg editor.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    User templates are saved as special post type “wp_template”. You could make an API call to get such a post. If the call fails, the template presumably had been deleted, or it never existed. You will need the template’s slug name or ID or some way of uniquely identifying the template.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.