Uses
Uses | Description |
---|---|
wp-admin/includes/class-wp-list-table.php: WP_List_Table::get_columns() | Gets a list of columns. |
Gets the name of the default primary column.
(string) Name of the default primary column, in this case, an empty string.
File: wp-admin/includes/class-wp-list-table.php
protected function get_default_primary_column_name() { $columns = $this->get_columns(); $column = ''; if ( empty( $columns ) ) { return $column; } // We need a primary defined so responsive views show something, // so let's fall back to the first non-checkbox column. foreach ( $columns as $col => $column_name ) { if ( 'cb' === $col ) { continue; } $column = $col; break; } return $column; }
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/get_default_primary_column_name