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