Dashboard
PHP:
8.4.22
OS:
Linux
User:
provencez
/
/
home
/
provencez
/
www
/
wp-content
/
themes
/
hello-elementor
/
modules
/
admin-home
/
components
📤 Upload
📝 New File
📁 New Folder
Close
Editing: 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-settings'] = [ 'title' => esc_html__( 'Hello Theme Settings', 'hello-elementor' ), 'icon' => 'paint-brush', 'url' => admin_url( 'admin.php?page=hello-elementor-settings' ), 'keywords' => [ 'theme', 'hello', 'home', 'settings', 'plus', '+' ], ]; } return $categories_data; } public function __construct() { add_filter( 'elementor/finder/categories', [ $this, 'add_hello_theme_finder_entry' ] ); } }
Save
Cancel