comment_reply_link

函式
comment_reply_link ( $args = array(), $comment = null, $post = null )
引數
  • (array) $args Optional. Override default options. Default empty array.
    Required:
    Default: array()
  • (int|WP_Comment) $comment Comment being replied to. Default current comment.
    Required:
    Default: null
  • (int|WP_Post) $post Post ID or WP_Post object the comment is going to be displayed on. Default current post.
    Required:
    Default: null
相關
  • get_comment_reply_link()
定義位置
相關方法
get_comment_reply_linkcancel_comment_reply_linkcomments_rss_linkcomment_linkpost_reply_link
引入
2.7.0
棄用
-

comment_reply_link: 這個函式生成一個連結來回復一個特定的評論: 當點選時,它會開啟評論表格,在”回覆”欄位中預先填入評論作者的名字。

顯示回覆評論連結的HTML內容。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function comment_reply_link( $args = array(), $comment = null, $post = null ) {
echo get_comment_reply_link( $args, $comment, $post );
}
function comment_reply_link( $args = array(), $comment = null, $post = null ) { echo get_comment_reply_link( $args, $comment, $post ); }
function comment_reply_link( $args = array(), $comment = null, $post = null ) {
	echo get_comment_reply_link( $args, $comment, $post );
}

常見問題

FAQs
檢視更多 >