wp_untrash_post
wp_untrash_post ( $post_id = 0 )
Parameters:- (int) post_id Optional. Post ID. Default is the ID of the global `$post`.
Returns:- (WP_Post|false|null) Post data on success, false or null on failure.
Defined at:Change Log: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Restores a post from the Trash.