list_authors

函式
list_authors ( $optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '' )
引數
  • (bool) $optioncount
    Required:
    Default: false
  • (bool) $exclude_admin
    Required:
    Default: true
  • (bool) $show_fullname
    Required:
    Default: false
  • (bool) $hide_empty
    Required:
    Default: true
  • (string) $feed
    Required:
    Default: (empty)
  • (string) $feed_image
    Required:
    Default: (empty)
返回值
  • (null|string)
相關
  • wp_list_authors()
定義位置
相關方法
wp_list_authorsis_authorlist_catsis_multi_authorthe_author
引入
1.2.0
棄用
2.1.0

list_authors: 這是WordPress中的一個函式,顯示網站上的作者名單。你可以在你的主題的模板檔案中使用這個函式來顯示作者的列表,並可以選擇顯示他們的名字、簡介等。

列出作者名單。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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);
}
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); }
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);
}

常見問題

FAQs
檢視更多 >