LLMS_Admin_Post_Table_Coupons::add_columns( array $columns )

Add Custom Coupon Columns


Parameters Parameters

$columns

(array) (Required) array of default columns


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/admin/post-types/post-tables/class.llms.admin.post.table.coupons.php

	public function add_columns( $columns ) {

		$columns = array(
			'cb'     => '<input type="checkbox" />',
			'title'  => __( 'Code', 'lifterlms' ),
			'amount' => __( 'Coupon Amount', 'lifterlms' ),
			'desc'   => __( 'Description', 'lifterlms' ),
			'usage'  => __( 'Usage / Limit', 'lifterlms' ),
			'expiry' => __( 'Expiration Date', 'lifterlms' ),
		);

		return $columns;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.