Answer the question
In order to leave comments, you need to log in
How to filter posts in WP_List_Table wordpress?
Hello.
almost figured out with WP_List_Table.
I write my own plugin. I want to make a similar table, like posts.
it remains to add filtering by date to your records from the database.
How to filter posts in wordpress?
Answer the question
In order to leave comments, you need to log in
Look towards the protected method extra_tablenav() . It's empty by default, but it's called automatically in display , and in this method you can echo out (simply and angrily, via echo) the markup with your filters.
Further, already in your function of pulling data from the table, make the necessary selections. Those. in the case of such filters, there is no ready-made function that can simply be called with some parameters, you need to add handles.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question