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:
定义位置
相关勾子
getarchives_joinget_page_linkpost_type_archive_linksearch_linkget_comments_link
相关方法
get_archives_linkget_archivesget_search_linkget_search_feed_linkwp_get_archivesget_post_type_archive_link
引入
5.2.0
弃用
-

get_archives_link: 这个函数根据传递给函数的参数,生成一个指向档案页(月、日、年等)的链接: 该函数接受一个可选的参数数组,包括类型(日、月、年)、格式(链接文本),以及用于指定链接前后显示的HTML的前后参数。

过滤档案链接的内容。

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 13:09:46

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: