| @@ -106,8 +106,18 @@ | ||
| 106 | 106 | foreach ( $categories as $category_name => $category ) { |
| 107 | 107 | $categories_data[ $category_name ] = array_merge( $category->get_settings(), [ 'name' => $category_name ] ); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** | |
| 111 | + * Finder categories. | |
| 112 | + * | |
| 113 | + * Filters the list of finder categories. This hook is used to manage Finder | |
| 114 | + * categories - to add new categories, remove and edit existing categories. | |
| 115 | + * | |
| 116 | + * @since 2.3.0 | |
| 117 | + * | |
| 118 | + * @param array $categories_data A list of finder categories. | |
| 119 | + */ | |
| 110 | 120 | $categories_data = apply_filters( 'elementor/finder/categories', $categories_data ); |
| 111 | 121 | |
| 112 | 122 | return [ |
| 113 | 123 | 'data' => $categories_data, |