wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_untrash_post_status › Filtr WordPress Hooks
Od5.6.0
Przestarzałyn/a
› apply_filters( 'wp_untrash_post_status', $new_status, $post_id, $previous_status )
| Parametry: (3) |
|
| Zdefiniowane na: |
|
| Codex: |
Filters the status that a post gets assigned when it is restored from the trash (untrashed).
By default posts that are restored will be assigned a status of 'draft'. Return the value of `$previous_status` in order to assign the status that the post had before it was trashed. The `wp_untrash_post_set_previous_status()` function is available for this. Prior to WordPress 5.6.0, restored posts were always assigned their original status.Powiązane Funkcje: wp_transition_post_status, wp_untrash_post, wp_untrash_post_comments, wp_untrash_post_set_previous_status, _transition_post_status, wp_trash_post
Powiązane Hooks: pre_untrash_post, wp_trash_post, transition_post_status, untrash_post, get_post_status