WC_Admin_List_Table::default_hidden_columns()publicWC 1.0

Adjust which columns are displayed by default.

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.

WC_Admin_List_Table::default_hidden_columns() code WC 8.6.1

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