onPostDeleted( )

An event that is triggered when a post is deleted.

The onPostDeleted() event handler runs when a post is deleted. The received PostDeleted object contains event metadata.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPostDeleted

Information about the post that was deleted.

Was this helpful?
Yes
No