WP_Feed_Cache_Transient::save()
Sets the transient.
Method of the class: WP_Feed_Cache_Transient{}
No Hooks.
Return
true
. Always true.
Usage
$WP_Feed_Cache_Transient = new WP_Feed_Cache_Transient(); $WP_Feed_Cache_Transient->save( $data );
- $data(SimplePie) (required)
- Data to save.
Changelog
Since 2.8.0 | Introduced. |
WP_Feed_Cache_Transient::save() WP Feed Cache Transient::save code WP 6.6.2
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; }