WC_Admin_List_Table::default_hidden_columns()publicWC 1.0

Adjust which columns are displayed by default.

{} It's a method of the class: WC_Admin_List_Table{}

No Hooks.

Return

Array.

Usage

$WC_Admin_List_Table = new WC_Admin_List_Table();
$WC_Admin_List_Table->default_hidden_columns( $hidden, $screen );
$hidden(array) (required)
Current hidden columns.
$screen(object) (required)
Current screen.

Code of WC_Admin_List_Table::default_hidden_columns() WC 6.7.0

public function default_hidden_columns( $hidden, $screen ) {
	if ( isset( $screen->id ) && 'edit-' . $this->list_table_type === $screen->id ) {
		$hidden = array_merge( $hidden, $this->define_hidden_columns() );
	}
	return $hidden;
}