self::is_hivepress_active(), 'woocommerce' => self::is_woocommerce_active(), ); return self::$detected; } /** * Can WPDO register zone-specific interceptors (hot/warm/cold/archive)? * * Zone interceptors are always safe to register — they operate on * WPDO's own tables. */ public static function can_register_zone_hooks(): bool { return true; } /** * Is HivePress core active? */ public static function is_hivepress_active(): bool { return class_exists( 'HivePress\Core' ); } /** * Is WooCommerce active? */ public static function is_woocommerce_active(): bool { return class_exists( 'WooCommerce' ); } /** * Is LatePoint plugin active? (v2.5.0 M16 polish — for module detector.) * * LatePoint exposes the OsBookingHelper class and `latepoint_*` action * hooks. Detect via either the helper class or the version constant. */ public static function is_latepoint_active(): bool { return class_exists( 'OsBookingHelper' ) || defined( 'LATEPOINT_VERSION' ) || function_exists( 'latepoint_get_settings' ); } }