Automattic\WooCommerce\Internal\ProductFeed\Storage

JsonFileFeed::endpublicWC 1.0

End the feed.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$JsonFileFeed = new JsonFileFeed();
$JsonFileFeed->end(): void;

Код JsonFileFeed::end() WC 10.5.2

public function end(): void {
	if ( ! is_resource( $this->file_handle ) ) {
		return;
	}

	// Close the array and the file.
	fwrite( $this->file_handle, ']' );
	fclose( $this->file_handle );

	// Indicate that we have a complete file.
	$this->file_completed = true;
}