WP_Filesystem_ftpsockets::touch()publicWP 2.5.0

Sets the access and modification times of a file.

Note: If $file doesn't exist, it will be created.

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

Хуков нет.

Возвращает

true|false. True on success, false on failure.

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

$WP_Filesystem_ftpsockets = new WP_Filesystem_ftpsockets();
$WP_Filesystem_ftpsockets->touch( $file, $time, $atime );
$file(строка) (обязательный)
Path to file.
$time(int)
Modified time to set for file.
$atime(int)
Access time to set for file.

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

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

Код WP_Filesystem_ftpsockets::touch() WP 6.4.3

public function touch( $file, $time = 0, $atime = 0 ) {
	return false;
}