wp_star_rating


wp_star_rating ( $args = array() )

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

Description

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_installing, wp_user_settings, wp_set_all_user_settings, wp_stream_image, wp_list_sort

Top Google Results

User discussions

wpseek mobile