# Unregistering Finder Categories
Elementor Core IntermediateDevelopers can remove finder categories from the list of registered categories. This is done by hooking to the finder categories manager and unregistering specific category by passing the category name.
# Unregistering Existing Finder Categories
Developers should use the following code to unregister existing categories:
/**
* Unregister Elementor finder categories.
*
* @param \Elementor\Core\Common\Modules\Finder\Categories_Manager $finder_categories_manager Elementor finder categories manager.
* @return void
*/
function unregister_finder_categories( $finder_categories_manager ) {
$finder_categories_manager->unregister( 'finder-category-1' );
$finder_categories_manager->unregister( 'finder-category-2' );
}
add_action( 'elementor/finder/register', 'unregister_finder_categories' );
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
This code hooks to the elementor/finder/register
action hook which holds the finder categories manager. The manager then unregisters finder categories by passing the category name.