Automattic\WooCommerce\Internal\Fulfillments
FulfillmentsManager::init_refund_hooks
Initialize refund-related hooks.
This method initializes the hooks related to refunds, such as updating fulfillments after a refund is created
Method of the class: FulfillmentsManager{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->init_refund_hooks();
FulfillmentsManager::init_refund_hooks() FulfillmentsManager::init refund hooks code WC 10.3.3
private function init_refund_hooks() {
add_action( 'woocommerce_refund_created', array( $this, 'update_fulfillments_after_refund' ), 10, 1 );
add_action( 'woocommerce_delete_order_refund', array( $this, 'update_fulfillment_status_after_refund_deleted' ), 10, 1 );
}