I am using the WP_List_Table class in a plugin to display rows from a custom table in the database and would like to give the user the option of turning on and off columns in the table from the screen options menu on the top of the page. I have tried looking at the code for other pages and seeing if i can figure it out as well as digging through the
class-wp-list-table.phpcode itself but all i can find is 2 functions from the
get_hidden_columns()that have little to no documentation as to what they are doing or how to work with them.
The bottom line is am i on the right track here or is this far easier than i am making it? Is there anybody who knows how to accomplish this or could point me in the direction of a tutorial or a solution?
- The topic ‘Make WP_List_Table columns selectable from screen options’ is closed to new replies.