WC_Helper_Updater::get_updates_count_html()public staticWC 1.0

Return the updates count markup.

Метод класса: WC_Helper_Updater{}

Хуков нет.

Возвращает

Строку. Updates count markup, empty string if no updates avairable.

Использование

$result = WC_Helper_Updater::get_updates_count_html();

Код WC_Helper_Updater::get_updates_count_html() WC 9.4.2

public static function get_updates_count_html() {
	$count      = self::get_updates_count_based_on_site_status();
	$count_html = sprintf( '<span class="update-plugins count-%d"><span class="update-count">%d</span></span>', $count, number_format_i18n( $count ) );

	return $count_html;
}