filesystem_method filter-hook . WP 2.6.0
Filters the filesystem method to use.
Usage
add_filter( 'filesystem_method', 'filter_function_name_3553', 10, 4 ); function filter_function_name_3553( $method, $args, $context, $allow_relaxed_file_ownership ){ // filter... return $method; }
- $method(string)
- Filesystem method to return.
- $args(array)
- An array of connection details for the method.
- $context(string)
- Full path to the directory that is tested for being writable.
- $allow_relaxed_file_ownership(true/false)
- Whether to allow Group/World writable.
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
filesystem_method
wp-admin/includes/file.php 1973
return apply_filters( 'filesystem_method', $method, $args, $context, $allow_relaxed_file_ownership );