On this page
apply_filters( 'filesystem_method', string $method, array $args, string $context, bool $allow_relaxed_file_ownership )
Filters the filesystem method to use.
Parameters
$methodstring-
Filesystem method to return.
$argsarray-
An array of connection details for the method.
$contextstring-
Full path to the directory that is tested for being writable.
$allow_relaxed_file_ownershipbool-
Whether to allow Group/World writable.
Source
File: wp-admin/includes/file.php. View all references
return apply_filters( 'filesystem_method', $method, $args, $context, $allow_relaxed_file_ownership );
Related
Used By
| Used By | Description |
|---|---|
| get_filesystem_method() wp-admin/includes/file.php | Determines which method to use for reading, writing, modifying, or deleting files on the filesystem. |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/filesystem_method