函数原型
list_authors( bool $optioncount = false, bool $exclude_admin = true, bool $show_fullname = false, bool $hide_empty = true, string $feed = ”, string $feed_image = ” ): null|string
函数描述
Lists authors.
是否弃用
Warning: This function has been deprecated. Use wp_list_authors() instead.
函数参数
-
$optioncount
bool
Optional Default:
false-
$exclude_admin
bool
Optional Default:
true-
$show_fullname
bool
Optional Default:
false-
$hide_empty
bool
Optional Default:
true-
$feed
string
Optional Default:
''-
$feed_image
string
Optional Default:
''
函数返回值
null|string
函数位置
File: wp-includes/deprecated.php.
函数源码
function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
_deprecated_function( __FUNCTION__, '2.1.0', 'wp_list_authors()' );
$args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
return wp_list_authors($args);
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.1.0 | Use wp_list_authors() |
| 1.2.0 | Introduced. |

