WC_CSV_Batch_Exporter::export()
Serve the file and remove once sent to the client.
Метод класса: WC_CSV_Batch_Exporter{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_CSV_Batch_Exporter = new WC_CSV_Batch_Exporter(); $WC_CSV_Batch_Exporter->export();
Список изменений
С версии 3.1.0 | Введена. |
Код WC_CSV_Batch_Exporter::export() WC CSV Batch Exporter::export WC 9.8.1
public function export() { $this->send_headers(); $this->send_content( $this->get_headers_row_file() . $this->get_file() ); @unlink( $this->get_file_path() ); // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_unlink, Generic.PHP.NoSilencedErrors.Discouraged @unlink( $this->get_headers_row_file_path() ); // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_unlink, Generic.PHP.NoSilencedErrors.Discouraged die(); }