WP_Filesystem_Base::get_contents()
Reads entire file into a string.
Method of the class: WP_Filesystem_Base{}
No Hooks.
Return
String|false
. Read data on success, false on failure.
Usage
$WP_Filesystem_Base = new WP_Filesystem_Base(); $WP_Filesystem_Base->get_contents( $file );
- $file(string) (required)
- Name of the file to read.
Changelog
Since 2.5.0 | Introduced. |
WP_Filesystem_Base::get_contents() WP Filesystem Base::get contents code WP 6.6.2
public function get_contents( $file ) { return false; }