get_comment_author_url

過濾鉤子
apply_filters( 'get_comment_author_url', $url, $id, $comment )
引數
  • (string) $url The comment author's URL, or an empty string.
    Required:
  • (string|int) $comment_ID The comment ID as a numeric string, or 0 if not found.
    Required:
  • (WP_Comment|null) $comment The comment object, or null if not found.
    Required:
定義位置
相關勾子
pre_comment_author_urlget_comment_authorget_comment_author_url_linkget_comment_author_linkget_comment_author_ip
相關方法
get_comment_author_urlget_comment_author_rsscomment_author_urlget_comment_authorget_comment_author_url_linkget_comment_author_link
引入
4.1.0
棄用
-

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

過濾評論作者的URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_comment_author_url', $url, $id, $comment );
return apply_filters( 'get_comment_author_url', $url, $id, $comment );
return apply_filters( 'get_comment_author_url', $url, $id, $comment );

常見問題

FAQs
檢視更多 >