WP_Feed_Cache_Transient::touch
Sets mod transient.
Method of the class: WP_Feed_Cache_Transient{}
No Hooks.
Returns
true|false. False if value was not set and true if value was set.
Usage
$WP_Feed_Cache_Transient = new WP_Feed_Cache_Transient(); $WP_Feed_Cache_Transient->touch();
Changelog
| Since 2.8.0 | Introduced. |
WP_Feed_Cache_Transient::touch() WP Feed Cache Transient::touch code WP 6.9
public function touch() {
return set_site_transient( $this->mod_name, time(), $this->lifetime );
}