apply_filters( ‘term_search_min_chars’, int $characters, WP_Taxonomy $taxonomy_object, string $search )

In this article

Filters the minimum number of characters required to fire a tag search via Ajax.

Parameters

$charactersint
The minimum number of characters required. Default 2.
$taxonomy_objectWP_Taxonomy
The taxonomy object.
$searchstring
The search term.

Source

$term_search_min_chars = (int) apply_filters( 'term_search_min_chars', 2, $taxonomy_object, $search );

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.