WC_Admin_List_Table_Coupons::define_columns()publicWC 1.0

Define which columns to show on this screen.

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

No Hooks.

Return

Array.

Usage

$WC_Admin_List_Table_Coupons = new WC_Admin_List_Table_Coupons();
$WC_Admin_List_Table_Coupons->define_columns( $columns );
$columns(array) (required)
Existing columns.

Code of WC_Admin_List_Table_Coupons::define_columns() WC 6.7.0

public function define_columns( $columns ) {
	$show_columns                = array();
	$show_columns['cb']          = $columns['cb'];
	$show_columns['coupon_code'] = __( 'Code', 'woocommerce' );
	$show_columns['type']        = __( 'Coupon type', 'woocommerce' );
	$show_columns['amount']      = __( 'Coupon amount', 'woocommerce' );
	$show_columns['description'] = __( 'Description', 'woocommerce' );
	$show_columns['products']    = __( 'Product IDs', 'woocommerce' );
	$show_columns['usage']       = __( 'Usage / Limit', 'woocommerce' );
	$show_columns['expiry_date'] = __( 'Expiry date', 'woocommerce' );

	return $show_columns;
}