Appearance
Finder Structure
Elementor Core BasicThe finder is organized into categories, each of which includes an array of links.
Finder Class
To edit the finder's categories, we first need to create a class that extends the \Elementor\Core\Common\Modules\Finder\Base_Category class - the base finder category class:
php
class New_Finder_Category extends \Elementor\Core\Common\Modules\Finder\Base_Category {
}Finder Methods
The extended class will have the following methods:
php
class New_Finder_Category extends \Elementor\Core\Common\Modules\Finder\Base_Category {
public function get_id(): string {}
public function get_title(): string {}
public function get_category_items(): array {}
public function is_dynamic(): bool {}
}Category ID - The
get_id()method returns a unique ID that will be used in the code.Category Title - The
get_title()method returns the label displayed to the user.Category Items - The
get_category_items()method returns an array of links belong to the category.Is Dynamic - The
is_dynamic()method is an optional method that return a boolean value. It is used when the category items return data using Ajax requests (like posts/pages titles). We will not be covering this method.