Automattic\WooCommerce\Internal
RestockRefundedItemsAdjuster::init()
Class initialization, to be executed when the class is resolved by the container.
Метод класса: RestockRefundedItemsAdjuster{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$RestockRefundedItemsAdjuster = new RestockRefundedItemsAdjuster(); $RestockRefundedItemsAdjuster->init();
Код RestockRefundedItemsAdjuster::init() RestockRefundedItemsAdjuster::init WC 9.3.3
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 ); }