Automattic\WooCommerce\Internal\Orders
OrderAttributionBlocksController::on_init()
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() 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(); }