WC_Helper_Updater::get_updates_count_html()
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 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; }