self::EXPERIMENT_NAME, 'title' => esc_html__( 'Pro Interactions', 'elementor-pro' ), 'description' => esc_html__( 'Enhanced interactions with replay support. Note: This feature requires both the "Atomic Widgets" and "Interactions" experiments to be enabled.', 'elementor-pro' ), 'hidden' => true, 'default' => ExperimentsManager::STATE_INACTIVE, 'release_status' => ExperimentsManager::RELEASE_STATUS_DEV, ]; } private function hooks() { return new Hooks(); } public function __construct() { parent::__construct(); if ( ! $this->is_experiment_active() ) { return; } $this->hooks()->register(); } private function is_experiment_active(): bool { return class_exists( 'Elementor\\Modules\\Interactions\\Module' ) && Plugin::elementor()->experiments->is_feature_active( self::EXPERIMENT_NAME ) && Plugin::elementor()->experiments->is_feature_active( AtomicWidgetsModule::EXPERIMENT_NAME ) && Plugin::elementor()->experiments->is_feature_active( InteractionsModule::EXPERIMENT_NAME ); } }