get_the_author_lastname

函式
get_the_author_lastname ( No parameters )
返回值
  • (string) The author's last name.
相關
  • get_the_author_meta()
定義位置
相關方法
the_author_lastnameget_the_author_firstnameget_the_author_aimget_the_author_nicknameget_the_author_meta
引入
1.5.0
棄用
2.8.0

get_the_author_lastname: 此函式檢索文章作者的姓氏。它不接受任何引數,返回一個包含姓氏的字串值。

檢索當前文章的作者的姓氏。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_the_author_lastname() {
_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('last_name')' );
return get_the_author_meta('last_name');
}
function get_the_author_lastname() { _deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('last_name')' ); return get_the_author_meta('last_name'); }
function get_the_author_lastname() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'get_the_author_meta('last_name')' );
	return get_the_author_meta('last_name');
}

常見問題

FAQs
檢視更多 >