Core Function
View Source on Trac ↗ get_filesystem_method()
get_filesystem_method(
mixed $args = array(),
mixed $context = '',
mixed $allow_relaxed_file_ownership = false
) Determines which method to use for reading, writing, modifying, or deleting
Parameters 2 required
| Name / Type | Description |
|---|---|
| $args array | Optional. Connection details. Default empty array. |
| string | $context Optional. Full path to the directory that is tested for being writable. Default empty. Required |
| bool | $allow_relaxed_file_ownership Optional. Whether to allow Group/World writable. Default false. Required |
Return Value
(string)
The transport to use, see description for valid return values.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/file.php
Advertisement