Пример #1
0
/**
 * Prints the theme download count.
 *
 * @since  1.0.0
 * @access public
 * @param  int     $theme_id
 * @return void
 */
function thds_wporg_theme_downloaded($theme_id = 0)
{
    echo number_format_i18n(thds_get_wporg_theme_downloaded($theme_id));
}
Пример #2
0
/**
 * Filters the theme download count.
 *
 * @since  1.0.0
 * @access public
 * @param  string  $count
 * @param  int     $theme_id
 * @return string
 */
function thds_wporg_theme_download_count_filter($count, $theme_id)
{
    return '' === $count ? thds_get_wporg_theme_downloaded($theme_id) : $count;
}