HEX
Server: LiteSpeed
System: Linux baran.dnsprotection.me 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ddir12 (3618)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/ddir12/www/wp-content/themes/hello-elementor/modules/admin-home/components/finder.php
<?php

namespace HelloTheme\Modules\AdminHome\Components;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Finder {

	public function add_hello_theme_finder_entry( $categories_data ) {
		if ( isset( $categories_data['site'] ) && isset( $categories_data['site']['items'] ) ) {
			$categories_data['site']['items']['hello-elementor-home'] = [
				'title' => 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' ] );
	}
}