WP_List_Table custom filter field
-
I’ve made an admin page inside a plugin with a table which extends
WP_List_Table
class.
Also, I’ve override functionextra_tablenav
in this way:public function extra_tablenav($which) { ?> <div class="alignleft actions daterangeactions"> <label for="daterange-actions-picker" class="screen-reader-text"><?=__('Filter', 'iw-stats')?></label> <input type="search" name="date" id="daterange-actions-picker"/> <?php submit_button(__('Apply', 'iw-stats'), 'action', 'dodate', false); ?> <?php submit_button(__('Export as CSV', 'iw-stats'), 'action', 'doexport', false); ?> </div> <?php }
It looks just as expected, but unfortunately when I submitting a form I’m getting a blank result on my field value (‘date’) in $_REQUEST.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WP_List_Table custom filter field’ is closed to new replies.