WordPress at a glance
filter is not described

pre_term_link filter-hook . WP 4.9.0

Filters the permalink structure for a terms before token replacement occurs.

Usage

add_filter( 'pre_term_link', 'filter_function_name_977', 10, 2 );
function filter_function_name_977( $termlink, $term ){
	// filter...

	return $termlink;
}
$termlink(string)
The permalink structure for the term's taxonomy.
$term(WP_Term)
The term object.

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

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

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

get_term_link()
pre_term_link
wp-includes/taxonomy.php 4334
$termlink = apply_filters( 'pre_term_link', $termlink, $term );

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

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