category_feed_link
Filters the category feed link.
Использование
add_filter( 'category_feed_link', 'wp_kama_category_feed_link_filter', 10, 2 ); /** * Function for `category_feed_link` filter-hook. * * @param string $link The category feed link. * @param string $feed Feed type. Possible values include 'rss2', 'atom'. * * @return string */ function wp_kama_category_feed_link_filter( $link, $feed ){ // filter... return $link; }
- $link(строка)
- The category feed link.
- $feed(строка)
- Feed type. Possible values include 'rss2', 'atom'.
Список изменений
С версии 1.5.1 | Введена. |
Где вызывается хук
wp-includes/link-template.php 983
$link = apply_filters( 'category_feed_link', $link, $feed );