the_author_firstname

函式
the_author_firstname ( No parameters )
相關
  • the_author_meta()
定義位置
相關方法
get_the_author_firstnamethe_author_lastnamethe_author_nicknameget_the_author_lastnamethe_author_aim
引入
0.71
棄用
2.8.0

the_author_firstname是一個WordPress模板標籤,用於顯示當前文章作者的名字。它可以在迴圈內使用,以輸出寫當前文章的作者的名字。

顯示當前文章作者的名字。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function the_author_firstname() {
_deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta('first_name')' );
the_author_meta('first_name');
}
function the_author_firstname() { _deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta('first_name')' ); the_author_meta('first_name'); }
function the_author_firstname() {
	_deprecated_function( __FUNCTION__, '2.8.0', 'the_author_meta('first_name')' );
	the_author_meta('first_name');
}

常見問題

FAQs
檢視更多 >