Automattic\WooCommerce\Internal\POS

POSController::register │ public │ WC 11.0.0

Register the feature surface.

The feature-flag check is deferred to on_init because feature_is_enabled() walks FeaturesController::init_feature_definitions(), which contains __( ...,'woocommerce') calls. Evaluating those before init triggers WP 6.7's "translation loading … too early" notice (and the headers-already-sent cascade that follows).

Method of the class: POSController{}

No Hooks.

Returns

null. Nothing (null).

Usage

$POSController = new POSController();
$POSController->register(): void;

Changelog

Since 11.0.0 Introduced.

POSController::register() code WC 11.2.1

public function register(): void {
	add_action( 'init', array( $this, 'on_init' ) );
}