filesystem_method_file
Filters the path for a specific filesystem method class file.
Usage
add_filter( 'filesystem_method_file', 'wp_kama_filesystem_method_file_filter', 10, 2 ); /** * Function for `filesystem_method_file` filter-hook. * * @param string $path Path to the specific filesystem method class file. * @param string $method The filesystem method to use. * * @return string */ function wp_kama_filesystem_method_file_filter( $path, $method ){ // filter... return $path; }
- $path(string)
- Path to the specific filesystem method class file.
- $method(string)
- The filesystem method to use.
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
filesystem_method_file
wp-admin/includes/file.php 2199
$abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method );