Automattic\WooCommerce\Internal\Admin\Agentic

AgenticController::on_initpublicWC 1.0

Hook into WordPress on init.

Method of the class: AgenticController{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

AgenticController::on_init() code WC 10.8.1

public function on_init() {
	// Bail if the feature is not enabled.
	if ( ! FeaturesUtil::feature_is_enabled( 'agentic_checkout' ) ) {
		return;
	}

	// Resolve webhook manager from container.
	wc_get_container()->get( AgenticWebhookManager::class )->register();
}