WC_CSV_Exporter::is_column_exporting( string $column_id )
See if a column is to be exported or not.
Description Description
Parameters Parameters
- $column_id
-
(Required) ID of the column being exported.
Return Return
(boolean)
Source Source
File: includes/export/abstract-wc-csv-exporter.php
public function is_column_exporting( $column_id ) {
$column_id = strstr( $column_id, ':' ) ? current( explode( ':', $column_id ) ) : $column_id;
$columns_to_export = $this->get_columns_to_export();
if ( empty( $columns_to_export ) ) {
return true;
}
if ( in_array( $column_id, $columns_to_export, true ) || 'meta' === $column_id ) {
return true;
}
return false;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |