pre_term_link хук-фильтр . WP 4.9.0
Filters the permalink structure for a terms before token replacement occurs.
Использование
add_filter( 'pre_term_link', 'filter_function_name_1600', 10, 2 ); function filter_function_name_1600( $termlink, $term ){ // filter... return $termlink; }
- $termlink(строка)
- The permalink structure for the term's taxonomy.
- $term(WP_Term)
- The term object.
Список изменений
С версии 4.9.0 | Введена. |
Где вызывается хук
wp-includes/taxonomy.php 4374
$termlink = apply_filters( 'pre_term_link', $termlink, $term );