woocommerce_product_category_metabox_search_threshold

woocommerce_product_category_metabox_search_threshold

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_filters('woocommerce_product_category_metabox_search_threshold') is found 1 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-product-categories.php line 48
    		 *
    		 * @param number $threshold The default threshold.
    		 * @returns number The threshold that will be used.
    		 */
    		if ( $categories_count <= apply_filters( 'woocommerce_product_category_metabox_search_threshold', 5 ) && function_exists( 'post_categories_meta_box' ) ) {
    			return post_categories_meta_box( $post, $box );
    		}
    
    		$defaults = array( 'taxonomy' => 'category' );
    		if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) {
    			$args = array();