term_(field)_rss
Filters the term field for use in RSS.
The dynamic portion of the hook name, $field, refers to the term field.
Использование
add_filter( 'term_(field)_rss', 'wp_kama_term_field_rss_filter', 10, 2 ); /** * Function for `term_(field)_rss` filter-hook. * * @param mixed $value Value of the term field. * @param string $taxonomy Taxonomy slug. * * @return mixed */ function wp_kama_term_field_rss_filter( $value, $taxonomy ){ // filter... return $value; }
- $value(разное)
- Value of the term field.
- $taxonomy(строка)
- Taxonomy slug.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
term_(field)_rss
wp-includes/taxonomy.php 1847
$value = apply_filters( "term_{$field}_rss", $value, $taxonomy );
Где используется хук в WordPress
wp-includes/default-filters.php 181
add_filter( 'term_name_rss', 'convert_chars' );