term_search_min_chars

term_search_min_chars

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('term_search_min_chars') is found 1 times:

  • /wp-admin/includes/ajax-actions.php line 145

    * @param int $characters The minimum number of characters required. Default 2.
    * @param WP_Taxonomy $taxonomy_object The taxonomy object.
    * @param string $search The search term.
    */
    $term_search_min_chars = (int) apply_filters( ‘term_search_min_chars’, 2, $taxonomy_object, $search );

    /*
    * Require $term_search_min_chars chars for matching (default: 2)
    * ensure it’s a non-negative, non-zero integer.
    */
    if ( ( 0 === $term_search_min_chars ) || ( strlen( $search ) < $term_search_min_chars ) ) { [/php]