WP_Filesystem_Base::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_Base{}

Хуков нет.

Возвращает

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

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

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->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_Base::touch() WP 6.5.2

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