WC_Admin_List_Table_Coupons::render_usage_column()protectedWC 1.0

Render column: usage.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render_usage_column();

Код WC_Admin_List_Table_Coupons::render_usage_column() WC 8.7.0

protected function render_usage_column() {
	$usage_count = $this->object->get_usage_count();
	$usage_limit = $this->object->get_usage_limit();

	printf(
		/* translators: 1: count 2: limit */
		__( '%1$s / %2$s', 'woocommerce' ),
		esc_html( $usage_count ),
		$usage_limit ? esc_html( $usage_limit ) : '∞'
	);
}