WP_Feed_Cache_Transient::save

Advertisement

Summery Summery

Sets the transient.

Syntax Syntax

WP_Feed_Cache_Transient::save( SimplePie $data )

Parameters Parameters

$data

(SimplePie) (Required) Data to save.

Return Return

(true) Always true.

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?