WP_List_Table::get_column_count()publicWP 3.1.0

Returns the number of visible columns.

Method of the class: WP_List_Table{}

No Hooks.

Return

Int.

Usage

$WP_List_Table = new WP_List_Table();
$WP_List_Table->get_column_count();

Changelog

Since 3.1.0 Introduced.

WP_List_Table::get_column_count() code WP 6.6.2

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