woocommerce_json_search_found_categories

woocommerce_json_search_found_categories

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_json_search_found_categories') is found 2 times:

  • /includes/class-wc-ajax.php line 1840
    				$found_categories[ $term->term_id ] = $term;
    			}
    		}
    
    		wp_send_json( apply_filters( 'woocommerce_json_search_found_categories', $found_categories ) );
    	}
    
    	/**
    	 * Search for categories and return json.
    	 */
    	public static function json_search_categories_tree() {
    
  • /includes/class-wc-ajax.php line 1909
    			function( $term ) {
    				return 0 === $term->parent;
    			}
    		);
    		wp_send_json( apply_filters( 'woocommerce_json_search_found_categories', $parent_terms ) );
    	}
    
    	/**
    	 * Search for taxonomy terms and return json.
    	 */
    	public static function json_search_taxonomy_terms() {