WC_Admin_List_Table_Coupons::render_products_column()protectedWC 1.0

Render column: products.

{} 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_products_column();

Code of WC_Admin_List_Table_Coupons::render_products_column() WC 6.7.0

protected function render_products_column() {
	$product_ids = $this->object->get_product_ids();

	if ( count( $product_ids ) > 0 ) {
		echo esc_html( implode( ', ', $product_ids ) );
	} else {
		echo '–';
	}
}