WP_Feed_Cache_Transient::touch()
Sets mod transient.
Method of the class: WP_Feed_Cache_Transient{}
No Hooks.
Return
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.7.1
public function touch() { return set_transient( $this->mod_name, time(), $this->lifetime ); }