Make WordPress Core

Ticket #15386: my-list-table-plugin-15386.php

File my-list-table-plugin-15386.php, 407 bytes (added by bgoewert, 19 months ago)

Comment #19 list-table plugin

Line 
1<?php
2/**
3 * Plugin Name: My List Table Plugin
4 */
5
6add_action( 'admin_menu', 'my_list_table_plugin_init' );
7
8function my_list_table_plugin_init() {
9        add_menu_page( 'Test', 'Test', 'manage_options', 'test', 'my_list_table_plugin_display' );
10}
11
12function my_list_table_plugin_display() {
13        $table = _get_list_table( 'WP_Comments_List_Table' );
14        $table->views();
15        $table->prepare_items();
16        $table->display();
17}