WP_Feed_Cache_Transient::save( SimplePie $data ): true

In this article

Sets the transient.

Parameters

$dataSimplePierequired
Data to save.

Return

true Always true.

Source

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;
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.