| @@ -15,13 +15,13 @@ | ||
| 15 | 15 | class AngiePromotion { |
| 16 | 16 | const ANGIE_GUIDE_AUTO_SHOWN_OPTION = 'elementor_angie_guide_auto_shown'; |
| 17 | 17 | |
| 18 | 18 | public static function init() { |
| 19 | - if ( ! self::should_display_promotion() ) { | |
| 20 | - return; | |
| 21 | - } | |
| 19 | + add_filter( 'elementor/editor/localize_settings', function ( $settings ) { | |
| 20 | + if ( ! self::should_display_promotion() ) { | |
| 21 | + return $settings; | |
| 22 | + } | |
| 22 | 23 | |
| 23 | - add_filter( 'elementor/editor/localize_settings', function ( $settings ) { | |
| 24 | 24 | $settings = self::register_for_new_site( $settings ); |
| 25 | 25 | $settings = self::register_for_existing_site( $settings ); |
| 26 | 26 | |
| 27 | 27 | return $settings; |