I am new to WordPress. I am trying to create a WordPress table using WP_List_Table
class. I created a table but it takes a long time. So, I want to create a function that allows me to create a WordPress table, where I can pass data and column array to the function and that function will, then, create the required WordPress table. I want to create table with edit, delete and sort-able functionality.
Leave a Reply
You must be logged in to post a comment.
hey try this code it dynamic function but you need to pass first argument kay and name is id.
this is my class that is dynamic create the WP_List_table.
just you copy that code in file and pass arguments like column name and data like this.
then after create the class object and pass the two arguments the data and column name like this.
i hope this is used full for you that is the dynamic class you need to display more column in $column array add column name and $data array add that name of column as key or value like this.
like this i hope this code is used full for you.
thank you.