get_term хук-фильтр . WP 2.3.0
Filters a taxonomy term object.
Использование
add_filter( 'get_term', 'filter_function_name_2724', 10, 2 ); function filter_function_name_2724( $_term, $taxonomy ){ // filter... return $_term; }
- $_term(WP_Term)
- Term object.
- $taxonomy(строка)
- The taxonomy slug.
Список изменений
С версии 2.3.0 | Введена. |
С версии 4.4.0 | $_term is now a WP_Term object. |
Где вызывается хук
get_term
wp-includes/taxonomy.php 856
$_term = apply_filters( 'get_term', $_term, $taxonomy );
Где используется хук (в ядре WP)
wp-admin/includes/ms-admin-filters.php 26
add_filter( 'get_term', 'sync_category_tag_slugs', 10, 2 );