Automattic\WooCommerce\Internal\Admin\Agentic

AgenticController::registerpublicWC 1.0

Register this class instance to the appropriate hooks.

Method of the class: AgenticController{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

AgenticController::register() code WC 10.5.0

public function register() {
	// Don't register hooks during installation.
	if ( Constants::is_true( 'WC_INSTALLING' ) ) {
		return;
	}

	// We want to run on init for translations but before woocommerce_init so that
	// we can hook the new integration settings page. We should be able to simplify
	// this by just hooking here when we no longer need to check if the feature is enabled.
	add_action( 'before_woocommerce_init', array( $this, 'on_init' ) );
}