Automattic\WooCommerce\Internal\ProductFeed\Storage
JsonFileFeed::end
End the feed.
Метод класса: JsonFileFeed{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$JsonFileFeed = new JsonFileFeed(); $JsonFileFeed->end(): void;
Код JsonFileFeed::end() 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;
}