WordPress at a glance
filter is not described

rest_route_for_term filter-hook . WP 5.5.0

Filters the REST API route for a term.

Usage

add_filter( 'rest_route_for_term', 'filter_function_name_7270', 10, 2 );
function filter_function_name_7270( $route, $term ){
	// filter...

	return $route;
}
$route(string)
The route path.
$term(WP_Term)
The term object.

Список изменений

С версии 5.5.0 Введена.

Где вызывается хук

rest_get_route_for_term()
rest_route_for_term
wp-includes/rest-api.php 2231
return apply_filters( 'rest_route_for_term', $route, $term );

Где используется хук в ядре WP

Использование не найдено.