WC_Helper_Updater::get_updates_count_html()public staticWC 1.0

Return the updates count markup.

{} It's a method of the class: WC_Helper_Updater{}

No Hooks.

Return

String. Updates count markup, empty string if no updates avairable.

Usage

$result = WC_Helper_Updater::get_updates_count_html();

Code of WC_Helper_Updater::get_updates_count_html() WC 6.6.1

public static function get_updates_count_html() {
	$count = self::get_updates_count();
	if ( ! $count ) {
		return '';
	}

	$count_html = sprintf( '<span class="update-plugins count-%d"><span class="update-count">%d</span></span>', $count, number_format_i18n( $count ) );
	return $count_html;
}