WP_Feed_Cache_Transient::save( SimplePie $data )

Sets the transient.


Description


Parameters

$data

(SimplePie) (Required) Data to save.


Top ↑

Return

(true) Always true.


Top ↑

Source

File: wp-includes/class-wp-feed-cache-transient.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;
	}

Top ↑

Changelog

Version Description
2.8.0 Introduced.