wp_untrash_post_set_previous_status


wp_untrash_post_set_previous_status ( $new_status, $post_id, $previous_status )

Parameters:
  • (string) new_status The new status of the post being restored.
  • (int) post_id The ID of the post being restored.
  • (string) previous_status The status of the post at the point where it was trashed.
Returns:
  • (string) The new status of the post.
Defined at:

Description

Filter callback which sets the status of an untrashed post to its previous status.This can be used as a callback on the `wp_untrash_post_status` filter.

Related Functions

wp_untrash_post_comments, wp_transition_post_status, wp_untrash_post, wp_trash_post_comments, _transition_post_status

Top Google Results

User discussions

wpseek mobile