Automattic\WooCommerce\Internal\Orders

OrderAttributionBlocksController::on_init()publicWC 1.0

Hook into WordPress on init.

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

Хуков нет.

Возвращает

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

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

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

Код OrderAttributionBlocksController::on_init() WC 9.5.1

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

	$this->extend_api();
}