WordPress获取作者Feed链接函数:get_author_feed_link

WordPress函数get_author_feed_link返回指定作者的Feed链接。

get_author_feed_link( int $author_id, string $feed = '' )

函数参数

$author_id

整数

作者的ID

$feed

字符串

Feed的类型,可用值:rss2、atom,默认值为get_default_feed()函数返回的值,即rss2

函数使用示例

<a href="">订阅

扩展阅读

get_author_feed_link()函数位于:wp-includes/link-template.php

相关函数:

  • author_feed_link()
  • get_author_rss_link()

原创文章,作者:,如若转载,请注明出处:https://ce.771633.xyz/1959.html

Like (0)
Previous 2025年3月8日
Next 2025年3月8日

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注