WPCF7_Filesystem::put_contents
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() WPCF7 Filesystem::put contents CF7 6.1.7
public function put_contents( $file, $contents, $mode = false ) {
return $this->filesystem->put_contents( $file, $contents, $mode );
}