Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

WP_comment_query

// WP_Comment_Query arguments
$args = array (
	'type'           => 'comment',
	'user_id'        => 'get_current_user_id()',
	'number'         => '10',
	'order'          => 'ASC',
	'orderby'        => 'comment_date',
	'count'          => true,
);

// The Comment Query
$comment_query = new WP_Comment_Query;
$comments = $comment_query->query( $args );

// The Comment Loop
if ( $comments ) {
	foreach ( $comments as $comment ) {
		// do something
	}
} else {
	echo 'No comments found.';
}