WP_List_Table::get_column_count() WordPress Method

This method is used to get the number of columns for the table. This is determined by the columns property of the WP_List_Table class.

WP_List_Table::get_column_count() #

Returns the number of visible columns.


Return

(int)


Top ↑

Source

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 );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.