| @@ -27,8 +27,10 @@ | ||
| 27 | 27 | |
| 28 | 28 | public function __construct() { |
| 29 | 29 | parent::__construct(); |
| 30 | 30 | |
| 31 | + $this->register_experiments(); | |
| 32 | + | |
| 31 | 33 | $this->register_app(); |
| 32 | 34 | |
| 33 | 35 | add_action( 'elementor/init', function () { |
| 34 | 36 | $this->set_cloud_library_settings(); |
| @@ -79,8 +81,23 @@ | ||
| 79 | 81 | |
| 80 | 82 | $settings['library']['doc_types'] = $this->get_document_types(); |
| 81 | 83 | |
| 82 | 84 | return $settings; |
| 85 | + } | |
| 86 | + | |
| 87 | + private function register_experiments() { | |
| 88 | + Plugin::$instance->experiments->add_feature( [ | |
| 89 | + 'name' => $this->get_name(), | |
| 90 | + 'title' => esc_html__( 'Cloud Library', 'elementor' ), | |
| 91 | + 'release_status' => ExperimentsManager::RELEASE_STATUS_STABLE, | |
| 92 | + 'default' => ExperimentsManager::STATE_ACTIVE, | |
| 93 | + 'hidden' => true, | |
| 94 | + 'mutable' => false, | |
| 95 | + 'new_site' => [ | |
| 96 | + 'always_active' => true, | |
| 97 | + 'minimum_installation_version' => '3.32.0', | |
| 98 | + ], | |
| 99 | + ] ); | |
| 83 | 100 | } |
| 84 | 101 | |
| 85 | 102 | private function register_app() { |
| 86 | 103 | add_action( 'elementor/connect/apps/register', function ( ConnectModule $connect_module ) { |