Uses
Uses | Description |
---|---|
wp-admin/includes/class-wp-list-table.php: WP_List_Table::get_column_info() | Gets a list of all, hidden and sortable columns, with filter applied. |
Returns the number of visible columns.
(int)
File: wp-admin/includes/class-wp-list-table.php
public function get_column_count() { list ( $columns, $hidden ) = $this->get_column_info(); $hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) ); return count( $columns ) - count( $hidden ); }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/get_column_count