W3cubDocs

/WordPress

WP_Filesystem_Direct::__construct( mixed $arg )

Constructor.

Description

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();
	}

Changelog

Version Description
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_filesystem_direct/__construct