get_comment_author_link

過濾鉤子
apply_filters( 'get_comment_author_link', $return, $author, $comment->comment_ID )
引數
  • (string) $return The HTML-formatted comment author link. Empty for an invalid URL.
    Required:
  • (string) $author The comment author's username.
    Required:
  • (string) $comment_ID The comment ID as a numeric string.
    Required:
定義位置
相關勾子
get_comment_author_url_linkget_comment_author_ipget_comment_author_urlget_comment_authorget_comment_author_email
相關方法
get_comment_author_linkget_comment_author_url_linkget_comment_author_ipcomment_author_linkget_comment_author_urlget_comment_author_email_link
引入
4.1.0
棄用
-

get_comment_author_link: 這個函式檢索給定評論的作者的網站的HTML連結: 該函式接受一個引數,即評論ID,並返回一個代表該連結的HTML字串。

過濾評論作者的連結以顯示。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_comment_author_link', $return, $author, $comment->comment_ID );
return apply_filters( 'get_comment_author_link', $return, $author, $comment->comment_ID );
return apply_filters( 'get_comment_author_link', $return, $author, $comment->comment_ID );

常見問題

FAQs
檢視更多 >