WPCF7_Filesystem::put_contents │ public │ CF7 1.0

Writes a string to a file.

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

Хуков нет.

Возвращает

bool. True on success, false on failure.

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

$WPCF7_Filesystem = new WPCF7_Filesystem();
$WPCF7_Filesystem->put_contents( $file, $contents, $mode );
$file(строка) (обязательный)
Path to the file where to write the data.
$contents(строка) (обязательный)
The data to write.
$mode(int)
The file permissions as octal number.
По умолчанию: false

Код WPCF7_Filesystem::put_contents() CF7 6.1.7

public function put_contents( $file, $contents, $mode = false ) {
	return $this->filesystem->put_contents( $file, $contents, $mode );
}