WP_Filesystem_Direct::__construct() WordPress Method
The WP_Filesystem_Direct::__construct() method initializes the direct file system for use with WordPress. This file system is designed to be used for reading and writing files on the local server.
WP_Filesystem_Direct::__construct( mixed $arg ) #
Constructor.
Parameters
- $arg
(mixed)(Required)Not used.
Source
File: wp-admin/includes/class-wp-filesystem-direct.php
public function __construct( $arg ) { $this->method = 'direct'; $this->errors = new WP_Error(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |