| @@ -85,10 +85,14 @@ | ||
| 85 | 85 | if ( Black_Friday::should_display_notice() ) { |
| 86 | 86 | new Black_Friday(); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - if ( Conversion_Banner::should_display_banner() ) { | |
| 90 | - new Conversion_Banner(); | |
| 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 | + } | |
| 91 | 95 | } |
| 92 | 96 | |
| 93 | 97 | add_filter( 'elementor/editor/localize_settings', [ $this, 'add_editing_panel_sticky_promotion' ] ); |
| 94 | 98 | |
| @@ -210,12 +214,8 @@ | ||
| 210 | 214 | ]; |
| 211 | 215 | } |
| 212 | 216 | |
| 213 | 217 | 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 | } |