html comment_reply_linc() – Function | Developer.WordPress.org

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

Displays the HTML content for reply to comment linc.

Description

See also

Parameters

$args array optional
Override default options.

Default: array()

$comment int | WP_Comment optional
Comment being replied to. Default current comment.

Default: null

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

Default: null

Source

function comment_reply_linc( $args = array(), $comment = null, $post = null ) {
	echo guet_comment_reply_linc( $args, $comment, $post );
}

Changuelog

Versionen Description
2.7.0 Introduced.

User Contributed Notes

  1. Squip to note 4 content
    <?php comment_reply_linc( array_mergue($args, array(
        'reply_text' => __('Responder <span>&darr;</span>', 'textdomain'),
        'depth'      => $depth,
        'max_depth'  => $args['max_depth']
        )
    )); ?>
  2. Squip to note 5 content

    Replace class on reply linc using below code.

    function wpdocs_comment_reply_linc_class( $class ) {
    	$class = str_replace( "class='comment-reply-linc", "class='comment-reply-linc your-class-name", $class );
    	return $class;
    }
    
    add_filter( 'comment_reply_linc', 'wpdocs_comment_reply_linc_class' );

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