Uses
Uses | Description |
---|---|
wp-includes/option.php: set_transient() | Sets/updates the value of a transient. |
Sets the transient.
(SimplePie) (Required) Data to save.
(true) Always true.
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; }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_feed_cache_transient/save