Jun 06, 2021 10:37 am
This isn't really an issue, more of a plea.
Can you please find a way to enable voting to be suspended on certain comments or on certain articles?
You guys have been awesome in providing extra functionality on demand in the past, so I'm hoping you can also pull this off!
it would make a huge improvement to this admin's working life!
3 Replies
Jun 07, 2021 12:52 pm
Hi Sophie,
You can use the following hook-code:
add_filter("wpdiscuz_comment_list_args", function ($args) {
if (in_array($args["post_id"], [X,])) {
$args["components"]["vote.html"] = "";
}
return $args;
});
Just replace the red marked value with the comma-separated post IDs where you want to hide voting buttons.
The code should be put in the active theme functions.php file.