restoreFromTrashBin( )

Restores a deleted draft post from the trash bin by the provided ID.

Uses the draftPostId to restore a deleted draft post from the trash bin.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Blog
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
draftPostIdstringRequired

Draft post ID.

Returns
Return Type:Promise<RestoreFromTrashBinResponse>
Was this helpful?
Yes
No