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.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-wc-post-data.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.