WC_CSV_Batch_Exporter::get_headers_row_file()publicWC 3.1.0

Get the contents of the CSV headers row file. Defaults to the original known headers.

Метод класса: WC_CSV_Batch_Exporter{}

Хуков нет.

Возвращает

Строку.

Использование

$WC_CSV_Batch_Exporter = new WC_CSV_Batch_Exporter();
$WC_CSV_Batch_Exporter->get_headers_row_file();

Список изменений

С версии 3.1.0 Введена.

Код WC_CSV_Batch_Exporter::get_headers_row_file() WC 8.7.0

public function get_headers_row_file() {

	$file = chr( 239 ) . chr( 187 ) . chr( 191 ) . $this->export_column_headers();

	if ( @file_exists( $this->get_headers_row_file_path() ) ) { // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
		$file = @file_get_contents( $this->get_headers_row_file_path() ); // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged, WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents, WordPress.WP.AlternativeFunctions.file_system_read_file_get_contents
	}

	return $file;
}