function __construct() { global $status, $page; parent::__construct(array('singular' => __('Form', 'UWPQSF'), 'plural' => __('Forms', 'UWPQSF'), 'ajax' => true)); add_action('admin_head', array(&$this, 'admin_header')); }
// Register the pagination $this->set_pagination_args(array("total_items" => $table_list->found_posts, "total_pages" => $table_list->max_num_pages, "per_page" => $number_by_page)); // Register the Columns $columns = $this->get_columns(); $hidden = array(); $sortable = $this->get_sortable_columns(); $primary = $this->get_primary_column_name(); $this->_column_headers = array($columns, $hidden, $sortable, $primary); // Fetch the items $this->items = $table_list->posts; } function column_name($item) { return 'Value of name column'; } function column_default($item) { return 'Default value'; } } ?> <div class="wrap"> <h2>Title</h2> <?php $wp_list_table = new Custom_List_Table(); $wp_list_table->prepare_items(); $wp_list_table->display(); ?> </div>