StoredStateSetupForProducts::run_on_transition_post_status( string $new_status, string $old_status, AutomatticWooCommerceAdminRemoteInboxNotificationsPost $post )
Runs when a post status transitions, but we’re only interested if it is a product being published.
Description Description
Parameters Parameters
- $new_status
-
(Required) The new status.
- $old_status
-
(Required) The old status.
- $post
-
(Required) The post.
Source Source
File: packages/woocommerce-admin/src/RemoteInboxNotifications/StoredStateSetupForProducts.php