WP_Filesystem_Base::put_contents( string $file, string $contents, int $mode = false )
Write a string to a file.
Parameters
- $file
-
(string) (Required) Remote path to the file where to write the data.
- $contents
-
(string) (Required) The data to write.
- $mode
-
(int) (Optional) The file permissions as octal number, usually 0644.
Default value: false
Return
(bool) False on failure.
Source
File: wp-admin/includes/class-wp-filesystem-base.php
public function put_contents( $file, $contents, $mode = false ) {
return false;
}
Changelog
Version | Description |
---|---|
WP-2.5.0 | Introduced. |