the_feed_link()
Displays the permalink for the feed type.
Хуки из функции
Возвращает
null
. Ничего (null).
Использование
the_feed_link( $anchor, $feed );
- $anchor(строка) (обязательный)
- The link's anchor text.
- $feed(строка)
- Feed type. Possible values include 'rss2', 'atom'.
По умолчанию: value of get_default_feed()
Список изменений
С версии 3.0.0 | Введена. |
Код the_feed_link() the feed link WP 6.7.2
function the_feed_link( $anchor, $feed = '' ) { $link = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>'; /** * Filters the feed link anchor tag. * * @since 3.0.0 * * @param string $link The complete anchor tag for a feed link. * @param string $feed The feed type. Possible values include 'rss2', 'atom', * or an empty string for the default feed type. */ echo apply_filters( 'the_feed_link', $link, $feed ); }