Automattic\WooCommerce\Internal\Orders

OrderAttributionBlocksController::on_init()publicWC 1.0

Hook into WordPress on init.

Method of the class: OrderAttributionBlocksController{}

No Hooks.

Return

null. Nothing (null).

Usage

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

OrderAttributionBlocksController::on_init() code WC 9.2.3

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

	$this->extend_api();
}