WP_Feed_Cache_Transient::touch()publicWP 2.8.0

Sets mod transient.

Метод класса: WP_Feed_Cache_Transient{}

Хуков нет.

Возвращает

true|false. False if value was not set and true if value was set.

Использование

$WP_Feed_Cache_Transient = new WP_Feed_Cache_Transient();
$WP_Feed_Cache_Transient->touch();

Список изменений

С версии 2.8.0 Введена.

Код WP_Feed_Cache_Transient::touch() WP 6.5.2

public function touch() {
	return set_transient( $this->mod_name, time(), $this->lifetime );
}