WC_CSV_Exporter::is_column_exporting
See if a column is to be exported or not.
Метод класса: WC_CSV_Exporter{}
Хуков нет.
Возвращает
true|false.
Использование
$WC_CSV_Exporter = new WC_CSV_Exporter(); $WC_CSV_Exporter->is_column_exporting( $column_id );
- $column_id(строка) (обязательный)
- ID of the column being exported.
Список изменений
| С версии 3.1.0 | Введена. |
Код WC_CSV_Exporter::is_column_exporting() WC CSV Exporter::is column exporting WC 10.9.4
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;
}