the_author_posts_link

過濾鉤子
apply_filters( 'the_author_posts_link', $link )

the_author_posts_link是一個模板標籤,顯示到作者的檔案頁的連結,但連結文字是作者的名字: 這是一個連結到作者檔案頁的方便方法,因為如果作者的名字改變,連結文字會自動更新。

過濾到當前文章作者的作者頁的連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'the_author_posts_link', $link );
return apply_filters( 'the_author_posts_link', $link );
return apply_filters( 'the_author_posts_link', $link );

常見問題

FAQs
檢視更多 >