Esempio n. 1
0
/**
 * Prints the number of theme ratings.
 *
 * @since  1.0.0
 * @access public
 * @param  int     $theme_id
 * @return void
 */
function thds_wporg_theme_num_ratings($theme_id = 0)
{
    echo esc_html(thds_get_wporg_theme_num_ratings($theme_id));
}
Esempio n. 2
0
/**
 * Filters the theme rating count.
 *
 * @since  1.0.0
 * @access public
 * @param  string  $url
 * @param  int     $theme_id
 * @return string
 */
function thds_wporg_theme_rating_count_filter($count, $theme_id)
{
    return '' === $count ? thds_get_wporg_theme_num_ratings($theme_id) : $count;
}