How to create Custom filter options in wp_list_table?
Code class Kv_subscribers_list extends WP_List_Table { function __construct(){ global $status, $page; parent::__construct( array( ‘singular’ => ‘notification’, ‘plural’ => ‘notifications’, ‘ajax’ => false ) ); } protected function get_views() { $status_links = array( “all” => __(“<a href=”#”>All</a>”,’my-plugin-slug’), “published” => __(“<a href=”#”>Published</a>”,’my-plugin-slug’), “trashed” => __(“<a href=”#”>Trashed</a>”,’my-plugin-slug’) ); return $status_links; } function column_default($item, $column_name){ switch($column_name){ case ’email’: case … Read more