Easy Digital Downloads
  • Package
  • Class
  • Tree

Packages

  • EDD
    • Admin
      • Actions
      • Add-ons
      • Dashboard
      • Discounts
      • Downloads
      • Export
      • Notices
      • Pages
      • Payments
      • Reports
      • Settings
      • System
      • Upgrades
      • Upload
      • Welcome
    • Cart
    • Checkout
    • Classes
      • API
      • Fees
      • HTML
      • Roles
      • Session
    • Emails
    • Functions
      • AJAX
      • Compatibility
      • Errors
      • Formatting
      • Install
      • Login
      • Taxes
      • Templates
    • Gateways
    • Logging
    • Payments
    • Shortcodes
    • Widgets

Classes

  • EDD_Discount_Codes_Table

Functions

  • edd_activate_discount
  • edd_add_discount
  • edd_deactivate_discount
  • edd_delete_discount
  • edd_discounts_contextual_help
  • edd_discounts_page
  • edd_edit_discount

Class EDD_Discount_Codes_Table

EDD_Discount_Codes_Table Class

Renders the Discount Codes table on the Discount Codes page

WP_List_Table
Extended by EDD_Discount_Codes_Table
Package: EDD\Admin\Discounts
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Author: Sunny Ratilal
Since: 1.4
Located at includes/admin/discounts/class-discount-codes-table.php

Methods summary

public
# __construct( )

Get things started

Get things started

Since

1.4

See

WP_List_Table::__construct()

Uses

EDD_Discount_Codes_Table::get_discount_code_counts()
public svoid
# search_box( string $text, string $input_id )

Show the search field

Show the search field

Parameters

$text
string
$text Label for the search box
$input_id
string
$input_id ID of the search box

Returns

svoid

Since

1.4
public array
# get_views( )

Retrieve the view types

Retrieve the view types

Returns

array
$views All the views available

Since

1.4
public array
# get_columns( )

Retrieve the table columns

Retrieve the table columns

Returns

array
$columns Array of all the list table columns

Since

1.4

Used by

EDD_Discount_Codes_Table::prepare_items()
public array
# get_sortable_columns( )

Retrieve the table's sortable columns

Retrieve the table's sortable columns

Returns

array
Array of all the sortable columns

Since

1.4

Used by

EDD_Discount_Codes_Table::prepare_items()
public string
# column_default( array $item, string $column_name )

This function renders most of the columns in the list table.

This function renders most of the columns in the list table.

Parameters

$item
array
$item Contains all the data of the discount code
$column_name
string
$column_name The name of the column

Returns

string
Column Name

Since

1.4
public string
# column_name( array $item )

Render the Name Column

Render the Name Column

Parameters

$item
array
$item Contains all the data of the discount code

Returns

string
Data shown in the Name column

Since

1.4
public string
# column_cb( array $item )

Render the checkbox column

Render the checkbox column

Parameters

$item
array
$item Contains all the data for the checkbox column

Returns

string
Displays a checkbox

Since

1.4
public array
# get_bulk_actions( )

Retrieve the bulk actions

Retrieve the bulk actions

Returns

array
$actions Array of the bulk actions

Since

1.4
public
# process_bulk_action( )

Process the bulk actions

Process the bulk actions

Since

1.4

Used by

EDD_Discount_Codes_Table::prepare_items()
public
# get_discount_code_counts( )

Retrieve the discount code counts

Retrieve the discount code counts

Since

1.4

Used by

EDD_Discount_Codes_Table::__construct()
public array
# discount_codes_data( )

Retrieve all the data for all the discount codes

Retrieve all the data for all the discount codes

Returns

array
$discount_codes_data Array of all the data for the discount codes

Since

1.4

Used by

EDD_Discount_Codes_Table::prepare_items()
public
# prepare_items( )

Setup the final data for the table

Setup the final data for the table

Since

1.4

Uses

EDD_Discount_Codes_Table::get_columns()
EDD_Discount_Codes_Table::get_sortable_columns()
EDD_Discount_Codes_Table::process_bulk_action()
EDD_Discount_Codes_Table::discount_codes_data()
WP_List_Table::get_pagenum()
WP_List_Table::set_pagination_args()

Magic methods summary

Properties summary

public string $per_page
#

Number of results to show per page

Number of results to show per page

Since

1.4
public string $total_count
#

Total number of discounts

Since

1.4
public string $active_count
#

Active number of discounts

Active number of discounts

Since

1.4
public string $inactive_count
#

Inactive number of discounts

Inactive number of discounts

Since

1.4
Easy Digital Downloads API documentation generated by ApiGen 2.8.0