From d8cbdec0f63c6825688a7c7db0f380bd7710fa8e Mon Sep 17 00:00:00 2001 From: Nicola Peluchetti Date: Tue, 23 Sep 2025 12:59:37 +0200 Subject: [PATCH] New: Add theme home to Finder [TMZ-935] (#549) --- modules/admin-home/components/finder.php | 27 ++++++++++++++++++++++++ modules/admin-home/module.php | 1 + 2 files changed, 28 insertions(+) create mode 100644 modules/admin-home/components/finder.php diff --git a/modules/admin-home/components/finder.php b/modules/admin-home/components/finder.php new file mode 100644 index 0000000..f42e12f --- /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 f7820ad..38fe3b2 100644 --- a/modules/admin-home/module.php +++ b/modules/admin-home/module.php @@ -35,6 +35,7 @@ class Module extends Module_Base { 'Admin_Top_Bar', 'Settings_Controller', 'Notificator', + 'Finder', ]; } }