diff --git a/modules/admin-home/components/finder.php b/modules/admin-home/components/finder.php new file mode 100644 index 00000000..f42e12fa --- /dev/null +++ b/modules/admin-home/components/finder.php @@ -0,0 +1,27 @@ + esc_html__( 'Hello Theme Home', 'hello-elementor' ), + 'icon' => 'paint-brush', + 'url' => admin_url( 'admin.php?page=hello-elementor' ), + 'keywords' => [ 'theme', 'hello', 'home', 'plus', '+' ], + ]; + } + + return $categories_data; + } + + public function __construct() { + add_filter( 'elementor/finder/categories', [ $this, 'add_hello_theme_finder_entry' ] ); + } +} diff --git a/modules/admin-home/module.php b/modules/admin-home/module.php index f7820ad3..38fe3b23 100644 --- a/modules/admin-home/module.php +++ b/modules/admin-home/module.php @@ -35,6 +35,7 @@ protected function get_component_ids(): array { 'Admin_Top_Bar', 'Settings_Controller', 'Notificator', + 'Finder', ]; } }