The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How to display rating only but disallow comments
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
May 07, 2025 5:13 pm
(@bembelhead)
New Member
Joined: 9 months ago
Howdy,
just discovered WPDiscuz and installed and am delighted so far! I've got a somewhat strange question and doubt this will be possible. I'll have some 50+ categories and want to allow comments only in a few of them. Found this snippet here to deal with this
add_filter("is_load_wpdiscuz", function ($load, $post) {
if (has_category([102,105], $post)) {
$load = false;
}
return $load;
}, 10, 2);
Perfect .. BUT ... this way I also loose the rating feature which is not desired. Is there a way to only display the rating but not the comments?
Thx for any hints on that.
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
May 10, 2025 1:44 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Hi,
I'm sorry, but there are not any hooks we can provide you.
Suggestion: You can hide the comment form using CSS or JS code.