Automattic\WooCommerce\Internal\Admin\Orders
ListTable::get_table_classes()
Gets a list of CSS classes for the WP_List_Table table tag.
Method of the class: ListTable{}
Hooks from the method
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 7.8.0 | Introduced. |
ListTable::get_table_classes() ListTable::get table classes code WC 9.6.1
protected function get_table_classes() { /** * Filters the list of CSS class names for the orders list table. * * @since 7.8.0 * * @param string[] $classes An array of CSS class names. * @param string $order_type The order type. */ $css_classes = apply_filters( 'woocommerce_' . $this->order_type . '_list_table_css_classes', array_merge( parent::get_table_classes(), array( 'wc-orders-list-table', 'wc-orders-list-table-' . $this->order_type, ) ), $this->order_type ); return array_unique( array_map( 'trim', $css_classes ) ); }