autoship_create_scheduled_orders_failure (action)

(src/orders.php) Within the autoship_create_scheduled_orders() function and can be used to perform custom actions when the creation of Scheduled Order(s) fail. The new action passes the Scheduled Order Id(s) ($scheduled_order_ids) for any successfully created Scheduled Order(s), the WooCommerce Order Id ($order_id) from which the Scheduled Orders originated, and the WordPress Error ($error) as its parameters.

Code

do_action( 'autoship_create_scheduled_orders_failure', $scheduled_order_ids, $order_id, $error );

Still need help? Contact Us Contact Us