PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.9
Elementor Website Builder – more than just a page builder v4.0.9
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 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/checklist/module.php +1 -20 4.3.0-beta14.0.9 View file →
@@ -2,9 +2,8 @@
2 2
3 3 namespace Elementor\Modules\Checklist;
4 4
5 5 use Elementor\Core\Base\Module as BaseModule;
6 -use Elementor\Core\Experiments\Manager as Experiments_Manager;
7 6 use Elementor\Modules\ElementorCounter\Module as Elementor_Counter;
8 7 use Elementor\Core\Isolation\Wordpress_Adapter;
9 8 use Elementor\Core\Isolation\Wordpress_Adapter_Interface;
10 9 use Elementor\Core\Isolation\Elementor_Adapter;
@@ -18,9 +17,8 @@
18 17 exit; // Exit if accessed directly.
19 18 }
20 19
21 20 class Module extends BaseModule implements Checklist_Module_Interface {
22 - const EXPERIMENT_NAME = 'launchpad-checklist';
23 21 const DB_OPTION_KEY = 'elementor_checklist';
24 22 const VISIBILITY_SWITCH_ID = 'show_launchpad_checklist';
25 23 const FIRST_CLOSED_CHECKLIST_IN_EDITOR = 'first_closed_checklist_in_editor';
26 24 const LAST_OPENED_TIMESTAMP = 'last_opened_timestamp';
@@ -46,13 +44,8 @@
46 44 $this->wordpress_adapter = $wordpress_adapter ?? new Wordpress_Adapter();
47 45 $this->elementor_adapter = $elementor_adapter ?? new Elementor_Adapter();
48 46
49 47 parent::__construct();
50 -
51 - if ( ! Plugin::$instance->experiments->is_feature_active( self::EXPERIMENT_NAME ) ) {
52 - return;
53 - }
54 -
55 48 $this->init_user_progress();
56 49
57 50 Plugin::$instance->data_manager_v2->register_controller( new Controller() );
58 51 $this->user_progress = $this->user_progress ?? $this->get_user_progress_from_db();
@@ -74,19 +67,8 @@
74 67 public function get_name(): string {
75 68 return 'e-checklist';
76 69 }
77 70
78 - public static function get_experimental_data(): array {
79 - return [
80 - 'name' => self::EXPERIMENT_NAME,
81 - 'title' => esc_html__( 'Launchpad Checklist', 'elementor' ),
82 - 'description' => esc_html__( 'Launchpad Checklist feature to boost productivity and deliver your site faster', 'elementor' ),
83 - 'hidden' => true,
84 - 'default' => Experiments_Manager::STATE_INACTIVE,
85 - 'release_status' => Experiments_Manager::RELEASE_STATUS_STABLE,
86 - ];
87 - }
88 -
89 71 /**
90 72 * Gets user's progress from db
91 73 *
92 74 * @return array {
@@ -256,8 +238,7 @@
256 238 }, 11 );
257 239 }
258 240
259 241 public static function should_display_checklist_toggle_control(): bool {
260 - return Plugin::$instance->experiments->is_feature_active( self::EXPERIMENT_NAME )
261 - && current_user_can( 'manage_options' );
242 + return current_user_can( 'manage_options' );
262 243 }
263 244 }