wp_star_rating ( $args = array() )

  • (array) $args { Optional. Array of star ratings arguments.
  • (string) Star rating HTML.
Defined at:
Change Log:
  • 4: .


Output a HTML element with a star rating for a given rating.

Outputs a HTML element with the star rating exposed on a 0..5 scale in half star increments (ie. 1, 1.5, 2 stars). Optionally, if specified, the number of ratings may also be displayed by passing the $number parameter.

Related Functions

wp_user_settings, wp_installing, wp_set_all_user_settings, wp_list_sort, wp_set_lang_dir

Top Google Results

User discussions

wpseek mobile