WP_Filesystem_Base::put_contents() – Writes a string to a file.
You appear to be a bot. Output may be restricted
Description
Writes a string to a file.
Usage
$bool = WP_Filesystem_Base::put_contents( $file, $contents, $mode );
Parameters
- $file
- ( string ) required – Remote path to the file where to write the data.
- $contents
- ( string ) required – The data to write.
- $mode
- ( int|false ) optional – Optional. The file permissions as octal number, usually 0644. Default false.
Returns
bool True on success, false on failure.
Source
File name: wordpress/wp-admin/includes/class-wp-filesystem-base.php
Lines:
1 to 3 of 3
public function put_contents( $file, $contents, $mode = false ) { return false; }