WP_List_Table::get_table_classes()
Gets a list of CSS classes for the WP_List_Table table tag.
Method of the class: WP_List_Table{}
No Hooks.
Return
String[]
. Array of CSS classes for the table tag.
Usage
// protected - for code of main (parent) or child class $result = $this->get_table_classes();
Changelog
Since 3.1.0 | Introduced. |
WP_List_Table::get_table_classes() WP List Table::get table classes code WP 6.7.1
protected function get_table_classes() { $mode = get_user_setting( 'posts_list_mode', 'list' ); $mode_class = esc_attr( 'table-view-' . $mode ); return array( 'widefat', 'fixed', 'striped', $mode_class, $this->_args['plural'] ); }