Jan 30, 2024 12:53 am
I've set Comment Form Settings to hide comment section for user roles, and it works fine.
But, I want to display something like below in that hidden section :
"You are not allowed to see the comments."
How can I do it?
6 Replies
Jan 31, 2024 9:47 am
Hi,
You can use the wpdiscuz_before_comments hook and display messsage. Just check if the current user has permission to view comments.
Feb 02, 2024 1:33 am
Thank you Asti.
Where should I insert the wpdiscuz_before_comments hook?
Please understand that I am a beginner in coding.