comment_max_links_url

過濾鉤子
apply_filters( 'comment_max_links_url', $num_links, $url, $comment )
引數
  • (int) $num_links The number of links found.
    Required:
  • (string) $url Comment author's URL. Included in allowed links total.
    Required:
  • (string) $comment Content of the comment.
    Required:
定義位置
相關勾子
comment_status_linkscomment_linkcomment_emailcomment_urlcomment_reply_link_args
相關方法
comment_linkcomments_linkcomment_author_linkcomments_rss_linkcomment_reply_linkcomment_author_url
引入
4.7.0
棄用
-

comment_max_links_url。這個過濾鉤子允許開發者改變評論稽覈頁面的URL。

過濾評論中發現的連結數量。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment );
$num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment );
$num_links = apply_filters( 'comment_max_links_url', $num_links, $url, $comment );

常見問題

FAQs
檢視更多 >