作者(细绳$弃用='',,,,布尔$ 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 引入。

顶部↑

用户贡献笔记

你必须登录在能够贡献笔记或反馈之前。