get_the_author_email

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

get_the_author_email: 這個函式檢索當前文章或頁面作者的電子郵件地址。它不接受任何引數,以字串形式返回電子郵件地址。

檢索當前文章作者的電子郵件。

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

常見問題

FAQs
檢視更多 >