WP_List_Table::get_column_count() – Return number of visible columns

You appear to be a bot. Output may be restricted

Description

Returns the number of visible columns.

Usage

$int = WP_List_Table::get_column_count();

Parameters

Returns

int

Source

File name: wordpress/wp-admin/includes/class-wp-list-table.php
Lines:

1 to 5 of 5
  public function get_column_count() {
    list ( $columns, $hidden ) = $this->WP_List_Table::get_column_info();
    $hidden                    = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
    return count( $columns ) - count( $hidden );
  }
 

 View on GitHub View on Trac