Usage
add_filter( 'ajax_term_search_results', 'your_callback_function', 10, 3 );Filter Callback:
function your_callback_function( $results, $taxonomy_object, $search ) {
// Your code here
return $results;
}Parameters
$resultsParameter 1
$taxonomy_objectParameter 2
$searchParameter 3
🔄 Filter Hook
Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.