author_link

過濾鉤子
apply_filters( 'author_link', $link, $author_id, $author_nicename )
引數
  • (string) $link The URL to the author's page.
    Required:
  • (int) $author_id The author's ID.
    Required:
  • (string) $author_nicename The author's nice name.
    Required:
定義位置
相關勾子
the_author_linkauthor_feed_linkcategory_linkyear_linkterm_link
相關方法
the_author_linkget_author_linkauthor_canthe_author_loginget_author_rss_linkcomment_author_link
引入
2.1.0
棄用
-

author_link是WordPress的一個函式,用於檢索特定作者的檔案頁的URL: 這個函式以作者的ID為引數,並返回該作者的檔案頁的URL。

過濾到作者頁面的URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$link = apply_filters( 'author_link', $link, $author_id, $author_nicename );
$link = apply_filters( 'author_link', $link, $author_id, $author_nicename );
$link = apply_filters( 'author_link', $link, $author_id, $author_nicename );

常見問題

FAQs
檢視更多 >