get_the_author_login

函数
get_the_author_login ( No parameters )
返回值
  • (string) The author's login name (username).
相关
  • get_the_author_meta()
定义位置
相关方法
get_the_author_linkthe_author_loginget_the_author_idget_the_author_yimget_the_author_url
引入
1.5.0
弃用
2.8.0

get_the_author_login: 这个函数检索文章作者的登录名。它不接受任何参数,返回一个包含登录名的字符串值。

检索当前文章的作者的登录名。

function get_the_author_login() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('login')' );
	return get_the_author_meta('login');
}

常见问题

FAQs
查看更多 >