# 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:
class New_Finder_Category extends \Elementor\Core\Common\Modules\Finder\Base_Category {
}
2
# Finder Methods
The extended class will have the following methods:
class New_Finder_Category extends \Elementor\Core\Common\Modules\Finder\Base_Category {
public function get_id() {}
public function get_title() {}
public function get_category_items() {}
public function is_dynamic() {}
}
2
3
4
5
6
7
8
9
10
11
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.