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!

gdrts_loop()->render()->rating($args = array(), $echo = true);

Description

Render the rating text block. This method is used by all rating methods to display rating text. Depending on the rating method, $args array contains different parameters.

Parameters for $args

Stars Rating, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.
  • show_votes: show number of votes.

Stars Review, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.

Thumbs Rating, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.
  • show_votes: show number of votes.

Like This, Single Block and Rating List

  • before: HTML to show before the rating text.
  • after: HTML to show after the rating text.
0
0
816
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply