comment_link

過濾鉤子
apply_filters( 'comment_link', get_comment_link( $comment )
引數
  • (string) $comment_permalink The current comment permalink.
    Required:
定義位置
相關勾子
get_comment_linkget_comments_linkedit_comment_linkpost_comments_linkcomment_reply_link
相關方法
comment_linkcomments_linkget_comment_linkget_comments_linkedit_comment_linkcomments_rss_link
引入
3.6.0
棄用
-

comment_link。這個過濾鉤子允許開發者改變評論的固定連結。

過濾當前評論的固定連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo esc_url( apply_filters( 'comment_link', get_comment_link( $comment ) ) );
echo esc_url( apply_filters( 'comment_link', get_comment_link( $comment ) ) );
echo esc_url( apply_filters( 'comment_link', get_comment_link( $comment ) ) );

常見問題

FAQs
檢視更多 >