'; echo esc_html__( 'AgenticTrack – Agentic Commerce Readiness for WooCommerce requires WooCommerce to be installed and active.', 'agentictrack-agent-readiness-for-woocommerce' ); echo '

'; } ); return; } require_once ARWC_PLUGIN_DIR . 'includes/class-arwc-plugin.php'; ARWC_Plugin::instance(); } /** * Activation hook: nothing destructive, just record the version. * * @return void */ function arwc_activate() { // update_option (not add_option) so the stored version tracks upgrades from // an earlier release, not just the first activation. update_option( 'arwc_version', ARWC_VERSION ); // Trigger the one-time first-run setup wizard redirect. This only flags the // intent; ARWC_Onboarding gates the actual redirect on the durable // `arwc_onboarded` option, so a merchant who has already been through (or // skipped) onboarding is never sent there again. Skipped during a bulk / // network activation where a redirect would be inappropriate. if ( ! isset( $_GET['activate-multi'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- core-provided activation flag, read-only. set_transient( 'arwc_activation_redirect', 1, 60 ); } } register_activation_hook( __FILE__, 'arwc_activate' );