WordPress · Arazzo Workflow
WordPress Unpublish Post to Draft
Version 1.0.0
Find a published post by search and revert it to draft.
Provider
Workflows
unpublish-post-to-draft
Locate a published post and revert it to draft status.
Searches published posts for the supplied query, and when a match is found reverts that post to draft status, then reads it back to verify it is no longer publicly visible.
1
findPublishedPost
listPosts
Search published posts for the supplied query, returning at most one match to revert.
2
revertToDraft
updatePost
Update the matched post so its status becomes draft, removing it from public view while preserving its content.
3
verifyDraft
getPost
Read the post back by id to confirm it now carries draft status.