get_the_author_url

函式
get_the_author_url ( No parameters )
返回值
  • (string) The URL to the author's page.
相關
  • get_the_author_meta()
定義位置
相關方法
get_the_authorthe_author_urlget_the_author_idget_the_author_linkget_the_author_login
引入
1.5.0
棄用
2.8.0

get_the_author_url: 這個函式檢索文章作者的網站或個人資料頁的URL。它不接受任何引數,返回一個包含URL的字串值。

檢索當前文章的作者的主頁的URL。

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

常見問題

FAQs
檢視更多 >