Automattic\WooCommerce\Internal\Orders

OrderAttributionBlocksController::on_init │ public │ WC 1.0

Hook into WordPress on init.

Метод класса: OrderAttributionBlocksController{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$OrderAttributionBlocksController = new OrderAttributionBlocksController();
$OrderAttributionBlocksController->on_init();

Код OrderAttributionBlocksController::on_init() WC 11.2.2

public function on_init() {
	// Bail if the feature is not enabled.
	if ( ! $this->features_controller->feature_is_enabled( 'order_attribution' ) ) {
		return;
	}

	$this->extend_api();
}