Two instances of wp_list_table and tabs how to configure Screen Options separate
-
I have a plugin with 2 tabs. Each tab displays a different instance of wp_list_tables. However the screen options declared like this:
$arguments = array(
‘label’ => __(‘Stalls Per Page’, $this->plugin_text_domain),
‘default’ => 50,
‘option’ => ‘stalls_per_page’
);add_screen_option(‘per_page’, $arguments);
Only picks up the last table configuration loaded. Is there a way to get the screen options to change based on which table html table data tab is open? Or am I doing something wrong with how I’m managing the instances for 2 tables?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Two instances of wp_list_table and tabs how to configure Screen Options separate’ is closed to new replies.