register(new Widget()); }); add_action('admin_notices', static function (): void { if ( ! current_user_can('activate_plugins') || did_action('elementor/loaded') ) { return; } echo '
' . esc_html__('AGY Slider works with Elementor Free. Activate Elementor to use the widget. AGY Core and Elementor Pro are not required.', 'agy-slider') . '