Hooks::transition_order_post_status_hooks( string $new_status, string $old_status, WP_Post $post )
Fires when a post is transitioned from one status to another so that we can make another hook that is namespaced.
Contents
Parameters
- $new_status
-
(string) (Required) New post status.
- $old_status
-
(string) (Required) Old post status.
- $post
-
(WP_Post) (Required) Post object.
Source
File: src/Tickets/Commerce/Hooks.php
public function transition_order_post_status_hooks( $new_status, $old_status, $post ) {
$this->container->make( Status\Status_Handler::class )->transition_order_post_status_hooks( $new_status, $old_status, $post );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |