WC_Admin_List_Table_Coupons::render_usage_column()protectedWC 1.0

Render column: usage.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Admin_List_Table_Coupons::render_usage_column() WC 6.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 ) : '∞'
	);
}