| @@ -85,14 +85,10 @@ | ||
| 85 | 85 | if ( Black_Friday::should_display_notice() ) { |
| 86 | 86 | new Black_Friday(); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - if ( ! Utils::has_pro() ) { | |
| 90 | - Conversion_Banner::register_cache_invalidation_hooks(); | |
| 91 | - | |
| 92 | - if ( Conversion_Banner::should_display_banner() ) { | |
| 93 | - new Conversion_Banner(); | |
| 94 | - } | |
| 89 | + if ( Conversion_Banner::should_display_banner() ) { | |
| 90 | + new Conversion_Banner(); | |
| 95 | 91 | } |
| 96 | 92 | |
| 97 | 93 | add_filter( 'elementor/editor/localize_settings', [ $this, 'add_editing_panel_sticky_promotion' ] ); |
| 98 | 94 | |
| @@ -214,8 +210,12 @@ | ||
| 214 | 210 | ]; |
| 215 | 211 | } |
| 216 | 212 | |
| 217 | 213 | public function add_editing_panel_sticky_promotion( array $settings ): array { |
| 214 | + if ( ! Plugin::$instance->experiments->is_feature_active( 'e_panel_promotions' ) ) { | |
| 215 | + return $settings; | |
| 216 | + } | |
| 217 | + | |
| 218 | 218 | $settings['editingPanelStickyPromotion'] = Filtered_Promotions_Manager::get_editor_panel_sticky_promotion(); |
| 219 | 219 | |
| 220 | 220 | return $settings; |
| 221 | 221 | } |