WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Internal

RestockRefundedItemsAdjuster::init() public WC 1.0

Class initialization, to be executed when the class is resolved by the container.

{} It's a method of the class: RestockRefundedItemsAdjuster{}

No Hooks.

Return

null. Nothing.

Usage

$RestockRefundedItemsAdjuster = new RestockRefundedItemsAdjuster();
$RestockRefundedItemsAdjuster->init();

Code of RestockRefundedItemsAdjuster::init() WC 5.9.0

final public function init() {
	$this->order_factory = wc_get_container()->get( LegacyProxy::class )->get_instance_of( \WC_Order_Factory::class );
	add_action( 'woocommerce_before_save_order_items', array( $this, 'initialize_restock_refunded_items' ), 10, 2 );
}