WC_CSV_Batch_Exporter::generate_file() public WC 3.1.0
Generate the CSV file.
{} Это метод класса: WC_CSV_Batch_Exporter{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_CSV_Batch_Exporter = new WC_CSV_Batch_Exporter(); $WC_CSV_Batch_Exporter->generate_file();
Список изменений
С версии 3.1.0 | Введена. |
Код WC_CSV_Batch_Exporter::generate_file() WC CSV Batch Exporter::generate file WC 5.0.0
public function generate_file() {
if ( 1 === $this->get_page() ) {
@unlink( $this->get_file_path() ); // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_unlink, Generic.PHP.NoSilencedErrors.Discouraged,
}
$this->prepare_data_to_export();
$this->write_csv_data( $this->get_csv_data() );
}