Automattic\WooCommerce\Internal\Fulfillments
FulfillmentsManager::init_fulfillment_status_hooks
Hook fulfillment status events.
This method hooks into the fulfillment status events to update the order fulfillment status when a fulfillment is created, updated, or deleted.
Method of the class: FulfillmentsManager{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->init_fulfillment_status_hooks();
FulfillmentsManager::init_fulfillment_status_hooks() FulfillmentsManager::init fulfillment status hooks code WC 10.3.3
private function init_fulfillment_status_hooks() {
// Update order fulfillment status when a fulfillment is created, updated, or deleted.
add_action( 'woocommerce_fulfillment_after_create', array( $this, 'update_order_fulfillment_status_on_fulfillment_update' ), 10, 1 );
add_action( 'woocommerce_fulfillment_after_update', array( $this, 'update_order_fulfillment_status_on_fulfillment_update' ), 10, 1 );
add_action( 'woocommerce_fulfillment_after_delete', array( $this, 'update_order_fulfillment_status_on_fulfillment_update' ), 10, 1 );
}