WP_Feed_Cache_Transient::save( SimplePie $data ): true

Sets the transient.


Parameters

$data SimplePie Required
Data to save.

Top ↑

Return

true Always true.


Top ↑

Source

File: wp-includes/class-wp-feed-cache-transient.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes

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