Warning: This function has been deprecated. Use wp_list_authors() instead.
list_authors() WordPress Function
The list_authors() Wordpress function allows you to list all the authors of a blog or website. This is useful if you want to give credit to all the authors on your site, or if you want to list all the authors in a certain category. You can also use this function to find out how many authors are on a site.
list_authors( bool $optioncount = false, bool $exclude_admin = true, bool $show_fullname = false, bool $hide_empty = true, string $feed = '', string $feed_image = '' ) #
Lists authors.
Description
See also
Parameters
- $optioncount
(bool)(Optional)
Default value: false
- $exclude_admin
(bool)(Optional)
Default value: true
- $show_fullname
(bool)(Optional)
Default value: false
- $hide_empty
(bool)(Optional)
Default value: true
- $feed
(string)(Optional)
Default value: ''
- $feed_image
(string)(Optional)
Default value: ''
Return
(null|string)
Source
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); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Use wp_list_authors() |
1.2.0 | Introduced. |