| @@ -38,8 +38,9 @@ | ||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | public function __construct() { |
| 41 | 41 | parent::__construct(); |
| 42 | + AngiePromotion::init(); | |
| 42 | 43 | |
| 43 | 44 | add_filter( 'elementor/editor/v2/packages', fn( $packages ) => $this->add_packages( $packages ) ); |
| 44 | 45 | add_action( 'elementor/elements/categories_registered', [ $this, 'maybe_register_custom_widgets_category_fallback' ], 100 ); |
| 45 | 46 | add_action( 'rest_api_init', fn() => $this->register_consent_route() ); |
| @@ -89,8 +90,12 @@ | ||
| 89 | 90 | } |
| 90 | 91 | |
| 91 | 92 | public function render_custom_widgets_category_heading_cta(): void { |
| 92 | 93 | if ( ! Plugin::$instance->experiments->is_feature_active( self::EXPERIMENT_NAME ) ) { |
| 94 | + return; | |
| 95 | + } | |
| 96 | + | |
| 97 | + if ( ! current_user_can( 'manage_options' ) ) { | |
| 93 | 98 | return; |
| 94 | 99 | } |
| 95 | 100 | |
| 96 | 101 | ?> |