作者(细绳$弃用='',,,,布尔$ retepecated_echo=真的)
显示当前帖子的作者名称。
描述
此功能的行为基于旧功能早于get_the_author()。此功能不弃用,但旨在回应get_the_author()由于任何可能仍使用旧行为的旧主题也将传递该值get_the_author()。
此功能的正常,预期的行为是回应作者而不是返回它。但是,必须保持向后兼容性。
也可以看看
参数
- $弃用
-
((细绳)(可选的)弃用。
默认值: ''
- $ retepecated_echo
-
((布尔)(可选的)弃用。利用get_the_author()。回声或返回字符串。
默认值:正确
返回
(字符串| null)作者的显示名称,来自get_the_author()。
资源
文件:WP-rudes/futor-template.php
函数the_author($ deprecated ='',$ extrecated_echo = true){if(!empty($ extecrecated)){_deprecated_argument(__function__,'2.1.0');} if(true!== $ deptecated_echo){_deprecated_argument(__function__,'1.5.0',sprintf( / *转换器:%s:get_the_author()。'),'<代码> get_the_author()'));} if($ dremecated_echo){echo get_the_author();}返回get_the_author();}
更改
版本 | 描述 |
---|---|
0.71 | 引入。 |
用户贡献笔记
你必须登录在能够贡献笔记或反馈之前。
显示帖子作者的名称(默认名称格式,在用户配置文件的“公开显示”中设置为“ uplldown”):