WC_Post_Data::wp_untrash_post_status( string $new_status, int $post_id, string $previous_status )
Ensure statuses are correctly reassigned when restoring orders and products.
Description Description
Parameters Parameters
- $new_status
-
(Required) The new status of the post being restored.
- $post_id
-
(Required) The ID of the post being restored.
- $previous_status
-
(Required) The status of the post at the point where it was trashed.
Return Return
(string)
Source Source
File: includes/class-wc-post-data.php
513 |