I am trying to call a custom callback function to wp_list_comments.
@php
wp_list_comments( array (
'style' => 'ul',
'short_ping' => true,
'callback' => 'mytheme_comment'
));
@endphp
But I receive the following alert message.
( ! ) Warning: call_user_func() expects parameter 1 to be a valid callback, function ‘mytheme_comment’ not found or invalid function name in /srv/www/example.com/current/web/wp/wp-includes/class-walker-comment.php on line 179
I am trying to replicate the same as wordpress does in the following example.
https://codex.wordpress.org/Function_Reference/wp_list_comments