| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | use Elementor\Modules\AtomicWidgets\Module as Atomic_Widgets_Module; |
| 8 | 8 | use Elementor\Modules\GlobalClasses\Database\Global_Classes_Database_Updater; |
| 9 | 9 | use Elementor\Modules\GlobalClasses\ImportExport\Import_Export; |
| 10 | 10 | use Elementor\Modules\GlobalClasses\ImportExportCustomization\Import_Export_Customization; |
| 11 | -use Elementor\Modules\GlobalClasses\Utils\Template_Library_Global_Classes; | |
| 12 | 11 | use Elementor\Modules\GlobalClasses\Usage\Global_Classes_Usage; |
| 13 | 12 | use Elementor\Plugin; |
| 14 | 13 | |
| 15 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -47,29 +46,8 @@ | ||
| 47 | 46 | ( new Global_Classes_Cleanup() )->register_hooks(); |
| 48 | 47 | ( new Import_Export() )->register_hooks(); |
| 49 | 48 | ( new Import_Export_Customization() )->register_hooks(); |
| 50 | 49 | ( new Global_Classes_Database_Updater() )->register(); |
| 51 | - | |
| 52 | - add_filter( | |
| 53 | - 'elementor/template_library/export/build_snapshots', | |
| 54 | - [ Template_Library_Global_Classes::class, 'add_global_classes_snapshot' ], | |
| 55 | - 10, | |
| 56 | - 4 | |
| 57 | - ); | |
| 58 | - | |
| 59 | - add_filter( | |
| 60 | - 'elementor/template_library/get_data/extract_snapshots', | |
| 61 | - [ Template_Library_Global_Classes::class, 'extract_global_classes_from_data' ], | |
| 62 | - 10, | |
| 63 | - 3 | |
| 64 | - ); | |
| 65 | - | |
| 66 | - add_filter( | |
| 67 | - 'elementor/template_library/import/process_content', | |
| 68 | - [ Template_Library_Global_Classes::class, 'process_global_classes_import' ], | |
| 69 | - 20, | |
| 70 | - 3 | |
| 71 | - ); | |
| 72 | 50 | } |
| 73 | 51 | } |
| 74 | 52 | |
| 75 | 53 | private function register_features() { |
| @@ -79,12 +57,8 @@ | ||
| 79 | 57 | 'description' => esc_html__( 'Enable global CSS classes.', 'elementor' ), |
| 80 | 58 | 'hidden' => true, |
| 81 | 59 | 'default' => Experiments_Manager::STATE_INACTIVE, |
| 82 | 60 | 'release_status' => Experiments_Manager::RELEASE_STATUS_ALPHA, |
| 83 | - 'new_site' => [ | |
| 84 | - 'default_active' => true, | |
| 85 | - 'minimum_installation_version' => '4.0.0', | |
| 86 | - ], | |
| 87 | 61 | ]); |
| 88 | 62 | |
| 89 | 63 | Plugin::$instance->experiments->add_feature([ |
| 90 | 64 | 'name' => self::ENFORCE_CAPABILITIES_EXPERIMENT, |