On this page
WP_Filesystem_Direct::__construct( mixed $arg )
Constructor.
Parameters
$argmixed Required-
Not used.
Source
File: wp-admin/includes/class-wp-filesystem-direct.php. View all references
public function __construct( $arg ) {
$this->method = 'direct';
$this->errors = new WP_Error();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Error::__construct() wp-includes/class-wp-error.php | Initializes the error. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_filesystem_direct/__construct