WordPress at a glance
function is not described

WP_Feed_Cache_Transient::save() public WP 2.8.0

Sets the transient.

{} It's a method of the class: WP_Feed_Cache_Transient{}

No Hooks.

Return

true. Always true.

Usage

$WP_Feed_Cache_Transient = new WP_Feed_Cache_Transient();
$WP_Feed_Cache_Transient->save( $data );
$data(SimplePie) (required)
Data to save.

Changelog

Since 2.8.0 Introduced.

Code of WP_Feed_Cache_Transient::save() WP 5.5.1

<?php
public function save( $data ) {
	if ( $data instanceof SimplePie ) {
		$data = $data->data;
	}

	set_transient( $this->name, $data, $this->lifetime );
	set_transient( $this->mod_name, time(), $this->lifetime );
	return true;
}