Custom Actions

Plugin provides one method to create delivery for order

em_woocommerce_uber_create_delivery ( $order_id )

Example code:

add_action(‘woocommerce_order_status_CUSTOMSTATUS’,’woocommerce_order_status_CUSTOMSTATUS_callback’);

function woocommerce_order_status_CUSTOMSTATUS_callback ( $order_id ) {

  em_woocommerce_uber_create_delivery ( $order_id );

}