Automattic\WooCommerce\Internal\POS
POSController::on_init
Wire up the feature surface once translations are safe to load.
No-op when the gating flag is off. Runtime surfaces are registered here as they are added in follow-up changes.
Метод класса: POSController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$POSController = new POSController(); $POSController->on_init(): void;
Список изменений
| С версии 11.0.0 | Введена. |
Код POSController::on_init() POSController::on init WC 11.2.2
public function on_init(): void {
if ( ! $this->features_controller->feature_is_enabled( self::FEATURE_FLAG ) ) {
return;
}
// Runtime surfaces (staff REST endpoint, attribution hooks, admin Staff UI)
// register here as they are added in follow-up changes.
}