comment_reply_link( array $args = array(), int|WP_Comment $comment = null, int|WP_Post $post = null )

Displays the HTML content for reply to comment link.

Description

See also

Parameters

$argsarrayoptional
Override default options.

Default:array()

$commentint|WP_Commentoptional
Comment being replied to. Default current comment.

Default:null

$postint|WP_Postoptional
Post ID or WP_Post object the comment is going to be displayed on.
Default current post.

Default:null

Source

function comment_reply_link( $args = array(), $comment = null, $post = null ) {
	echo get_comment_reply_link( $args, $comment, $post );
}

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

  1. Skip to note 4 content
    <?php comment_reply_link( array_merge($args, array(
        'reply_text' => __('Responder <span>&darr;</span>', 'textdomain'),
        'depth'      => $depth,
        'max_depth'  => $args['max_depth']
        )
    )); ?>

You must log in before being able to contribute a note or feedback.