search_feed_link

过滤钩子


apply_filters( 'search_feed_link', $link, $feed, 'posts' )
参数
  • (string)
    $link
    Search feed link.
    Required:
  • (string)
    $feed
    Feed type. Possible values include ‘rss2’, ‘atom’.
    Required:
  • (string)
    $type
    The search type. One of ‘posts’ or ‘comments’.
    Required:
定义位置
  • wp-includes/link-template.php
    , line 1250
引入
2.5.0
弃用

Filters the search feed link.

return apply_filters( 'search_feed_link', $link, $feed, 'posts' );