This filter can be used for changing the half star SVG.
IMPORTANT: the wpd-star and wpd-active classes should be existed on the paths to allow the icons to be colored.
Changelog
Since 7.0.0 version
Parameters
1. $svg (type: string) – the SVG of the half star
2. $type (type: string) – is it the post rating or custum field
3. $icon (type: string) – the icon that is used for the rating field. The fas fa-star is used for post rating.
Usage
add_filter('wpdiscuz_half_star_svg', function ($svg, $type, $icon) { if ($type === "post") { $svg = ''; } return $svg; }, 10, 3);