WordPress at Your Fingertips
function is not described

WP_Filesystem_SSH2::touch() public WP 2.7.0

Sets the access and modification times of a file.

Note: Not implemented.

{} It's a method of the class: WP_Filesystem_SSH2{}

No Hooks.


null. Nothing.


$WP_Filesystem_SSH2 = new WP_Filesystem_SSH2();
$WP_Filesystem_SSH2->touch( $file, $time, $atime );
$file(string) (required)
Path to file.
Modified time to set for file.
Access time to set for file.


Since 2.7.0 Introduced.

Code of WP_Filesystem_SSH2::touch() WP 5.8.2

public function touch( $file, $time = 0, $atime = 0 ) {
	// Not implemented.