当前位置:首页 > 云计算 > 正文内容

WordPress获取作者函数:get_the_author

2022-05-31 08:14:33云计算6

WordPress函数get_the_author用于获取作者的名称,返回名称为个人资料中“公开显示为”选项设置。

get_the_author( string $deprecated = '' )

函数参数

$deprecated

字符串,默认为空

自2.1.0版本起,不再支持该参数。

扩展阅读

get_the_author()函数位于:wp-includes/author-template.php

相关函数:

  • the_author()
  • get_the_author_posts_link()
  • get_the_archive_title()
  • get_the_author_link()
  • the_author_posts_link()
  • the_author_link()

本网站文章仅供交流学习 ,不作为商用, 版权归属原作者,部分文章推送时未能及时与原作者取得联系,若来源标注错误或侵犯到您的权益烦请告知,我们将立即删除.

本文链接:https://www.xibujisuan.cn/22764.html

标签: WordPress