Automattic\WooCommerce\Internal\Orders
OrderAttributionBlocksController::on_init
Hook into WordPress on init.
Метод класса: OrderAttributionBlocksController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$OrderAttributionBlocksController = new OrderAttributionBlocksController(); $OrderAttributionBlocksController->on_init();
Код OrderAttributionBlocksController::on_init() OrderAttributionBlocksController::on init WC 10.7.0
public function on_init() {
// Bail if the feature is not enabled.
if ( ! $this->features_controller->feature_is_enabled( 'order_attribution' ) ) {
return;
}
$this->extend_api();
}