您可以这样尝试:
<?php
$my_user = get_current_user_id();
$args = array(
\'post_type\' => \'custom-post-type\',
\'user_id\' => $my_user,
);
$comments = get_comments($args);
foreach($comments as $comment) :
echo($comment->comment_author . \'<br />\' . $comment->comment_content);
endforeach;
?>
前提是您的用户有评论!!