What you need to do to achieve this is to provide the second parameter of wp_list_comments()
, which would be $comments
and is described like this:
(array) (optional) Array obtained by get_comments query.
Default: The default return of get_comments.
Which actually makes it clear what you need to do, which would be utilizing get_comments()
. Below a generic example on how to achieve this:
$user_id = get_current_user_id();
$user_specific_comments = get_comments(
array(
'user_id' => $user_id
)
);
wp_list_comments(
array(
'per_page' => 3
),
$user_specific_comments
);
The principle is clear now, so this should get you started.