In my WordPress site I am showing all comments of each post in comments.php file using this code:
wp_list_comments( array(
'style' => '<div>',
'per_page' => 10,
'avatar_size' => 50,
'callback' => 'mytheme_comment',
'type' => 'comment',
'avatar_size' => 100,
));
Now I want to hide all comment using a hook in my custom plugin p age with following code:
add_filter( 'comments_array', '__return_empty_array' );
But it's doesn't hide or remove the all comment list, how can I do this?
And is there any hook available in WordPress that I can add some text or html content before the comment list and form ?
Image for better understanding:
Update:
For example, I just disabled the full comment system. So that comment area is blank but I want to show something with any hook. Is there any hook for that?