gravityflowwoocommerce_pre_update_entry

The gravityflowwoocommerce_pre_update_entry action allows the processing to be overridden entirely.

Parameters

Parameter Type Definition
$entry Gravity Forms entry object The current entry.
$order_id Int The WooCommerce Order ID.
$from_status String The WooCommerce old order status.
$to_status String The WooCommerce new order status..
$order Order The WooCommerce Order object.

Examples

Example 1 -

Placeholder code.

add_action( 'gravityflowwoocommerce_pre_update_entry', 'sh_gravityflowwoocommerce_pre_update_entry', 10, 5 );
    function sh_gravityflowwoocommerce_pre_update_entry($entry, $order_id, $from_status, $to_status, $order) {
	
		// Do something here..
        
    }

Placement

This code should be placed in the functions.php file of your active theme or in a custom functions plugin.