PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/atomic-widgets/opt-in/opt-in.php +4 -0 4.3.0-beta1 → 4.3.1 View file →
@@ -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' ) ) {