wp_untrash_post


wp_untrash_post ( $post_id = 0 )

Parameters:
  • (int) $post_id Optional. Post ID. Default is ID of the global $post.
Returns:
  • (WP_Post|false|null) Post data on success, false or null on failure.
Defined at:

Description

Restore a post or page from the Trash.

Related Functions

wp_trash_post, wp_ajax_untrash_post, wp_ajax_trash_post, wp_untrash_comment, wp_untrash_post_comments

Top Google Results

User discussions

wpseek mobile