Description
The gravityflowwoocommerce_post_update_entry action allows the entry to be modified after processing.
Parameters
Parameter | Type | Definition |
---|---|---|
$entry | Entry | The current entry. |
$from_status | String | The WooCommerce old order status. |
$to_status | String | The WooCommerce new order status.. |
$order | Order | The WooCommerce Order object. |
Examples
add_action( 'gravityflowwoocommerce_post_update_entry', 'sh_gravityflowwoocommerce_post_update_entry', 10, 4 );
function sh_gravityflowwoocommerce_post_update_entry($entry,$from_status, $to_status, $order) {
// Do something here..
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?