| @@ -9,8 +9,10 @@ | ||
| 9 | 9 | |
| 10 | 10 | class Opt_In { |
| 11 | 11 | const EXPERIMENT_NAME = 'e_opt_in_v4'; |
| 12 | 12 | |
| 13 | + const OPT_IN_CLICKED_OPTION = 'elementor_v4_opt_in_clicked'; | |
| 14 | + | |
| 13 | 15 | const OPT_IN_FEATURES = [ |
| 14 | 16 | self::EXPERIMENT_NAME, |
| 15 | 17 | 'container', |
| 16 | 18 | AtomicWidgetsModule::EXPERIMENT_NAME, |
| @@ -55,8 +57,10 @@ | ||
| 55 | 57 | foreach ( self::OPT_IN_FEATURES as $feature ) { |
| 56 | 58 | $feature_key = Plugin::$instance->experiments->get_feature_option_key( $feature ); |
| 57 | 59 | update_option( $feature_key, Experiments_Manager::STATE_ACTIVE ); |
| 58 | 60 | } |
| 61 | + | |
| 62 | + update_option( self::OPT_IN_CLICKED_OPTION, true ); | |
| 59 | 63 | } |
| 60 | 64 | |
| 61 | 65 | public function ajax_opt_out_v4() { |
| 62 | 66 | if ( ! current_user_can( 'manage_options' ) ) { |