public function print_column_headers($with_id = true) { if ($with_id) { parent::print_column_headers(); } }
function __construct($items) { parent::__construct(array('singular' => __('alternative', 'nelioab'), 'plural' => __('alternatives', 'nelioab'), 'ajax' => false)); $this->alternatives = $items; $this->set_items(array(array('id' => '{ID}', 'name' => '{NAME}'))); }
/** * It creates a new instance of this class. * * @param array $super_params A few params required by WP_List_Table. * * @return NelioABAdminPaginatedTable a new instance of this class. * * @since PHPDOC */ function __construct($super_params) { //Set parent defaults parent::__construct($super_params); $this->items_per_page = 10; }
function __construct($experiments) { parent::__construct(array('singular' => __('experiment', 'nelioab'), 'plural' => __('experiments', 'nelioab'), 'ajax' => false)); $this->set_items($experiments); add_action('admin_head', array(&$this, 'admin_header')); }