WC_Admin_List_Table_Coupons::render_usage_column()protectedWC 1.0

Render column: usage.

Method of the class: WC_Admin_List_Table_Coupons{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->render_usage_column();

WC_Admin_List_Table_Coupons::render_usage_column() code WC 9.4.2

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 ) : '∞'
	);
}