| @@ -20,8 +20,10 @@ | ||
| 20 | 20 | const CATEGORY_ATOMIC_ELEMENTS = 'v4-elements'; |
| 21 | 21 | const CATEGORY_ATOMIC_FORM = 'atomic-form'; |
| 22 | 22 | const CATEGORY_FAVORITES = 'favorites'; |
| 23 | 23 | const CATEGORY_ANGIE_WIDGETS = 'angie-widgets'; |
| 24 | + const CATEGORY_CUSTOM_WIDGETS = 'custom-widgets'; | |
| 25 | + const CATEGORY_BASIC = 'basic'; | |
| 24 | 26 | |
| 25 | 27 | /** |
| 26 | 28 | * Element types. |
| 27 | 29 | * |
| @@ -382,9 +384,14 @@ | ||
| 382 | 384 | * @param Elements_Manager $this Elements manager instance. |
| 383 | 385 | */ |
| 384 | 386 | do_action( 'elementor/elements/categories_registered', $this ); |
| 385 | 387 | |
| 386 | - $this->promote_category_after( self::CATEGORY_ANGIE_WIDGETS, [ self::CATEGORY_ATOMIC_FORM, self::CATEGORY_ATOMIC_ELEMENTS ] ); | |
| 388 | + $after_candidates = Plugin::$instance->experiments->is_feature_active( 'e_atomic_elements' ) | |
| 389 | + ? [ self::CATEGORY_ATOMIC_FORM, self::CATEGORY_ATOMIC_ELEMENTS ] | |
| 390 | + : [ self::CATEGORY_BASIC ]; | |
| 391 | + | |
| 392 | + $this->promote_category_after( self::CATEGORY_ANGIE_WIDGETS, $after_candidates ); | |
| 393 | + $this->promote_category_after( self::CATEGORY_CUSTOM_WIDGETS, $after_candidates ); | |
| 387 | 394 | |
| 388 | 395 | $this->categories['wordpress'] = [ |
| 389 | 396 | 'title' => esc_html__( 'WordPress', 'elementor' ), |
| 390 | 397 | 'icon' => 'eicon-wordpress', |