wp_set_post_tags()
Set the tags for a post.
Set the tags for a post.
Set the terms for a post.
Fires actions related to the transitioning of a post’s status.
Move a post or page to the Trash
Moves comments for a post to the Trash.
Computes a unique slug for the post, when given the desired slug and some post details.
Restores a post from the Trash.
Restore comments for a post from the Trash.
Filter callback which sets the status of an untrashed post to its previous status.
Updates metadata for an attachment.