get_archives_link

过滤钩子


apply_filters( 'get_archives_link', $link_html, $url, $text, $format, $before, $after, $selected )
参数
  • (string)
    $link_html
    The archive HTML link content.
    Required:
  • (string)
    $url
    URL to archive.
    Required:
  • (string)
    $text
    Archive text description.
    Required:
  • (string)
    $format
    Link format. Can be ‘link’, ‘option’, ‘html’, or custom.
    Required:
  • (string)
    $before
    Content to prepend to the description.
    Required:
  • (string)
    $after
    Content to append to the description.
    Required:
  • (bool)
    $selected
    True if the current page is the selected archive.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 1931
引入
5.2.0
弃用

过滤档案链接的内容。

return apply_filters( 'get_archives_link', $link_html, $url, $text, $format, $before, $after, $selected );