post_type_archive_feed_link
Filters the post type archive feed link.
Usage
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(string)
- The post type archive feed link.
- $feed(string)
- Feed type. Possible values include 'rss2', 'atom'.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
post_type_archive_feed_link
wp-includes/link-template.php 1392
return apply_filters( 'post_type_archive_feed_link', $link, $feed );