Function Signature:
wp_untrash_post_set_previous_status
Function Description:
Filters callback which sets the status of an untrashed post to its previous status.
Function Examples:
⚠️ Examples below are generated with GPT-3 once every hour. Do not take them too seriously.
Consider them as some extra input in your learning process - reason about them. Will it work? What could fail?
// Example 1: Restore a trashed post and set its previous status to 'draft'
$post_id = 123;
wp_untrash_post_set_previous_status($post_id);
// Example 2: Restore a trashed post and set its previous status to 'publish'
$post_id = 456;
wp_untrash_post_set_previous_status($post_id);
// Example 3: Restore a trashed post and set its previous status to 'pending'
$post_id = 789;
wp_untrash_post_set_previous_status($post_id);