Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Filter gdrts_render_single_stars_review_args_stars is used to filter the parameters used for the rendering of stars in the single rating block for Stars Review method templates. This filter has 2 arguments:

  • $atts: array of parameters to filter
  • $render_object: the instance of the render object

Array $atts contains following elements:

  • style_size: if set, size of the stars.
  • font_color_empty: if set, color for the empty stars.
  • font_color_current: if set, color for the rating stars.

If you need to modify all the styling properties (style type, name…), you should use the filter that runs before the template is actually loaded:

Rate this reference

You are not allowed to rate this post.

Leave a Comment