W3cubDocs

/WordPress

apply_filters( ‘filesystem_method_file’, string $path, string $method )

Filters the path for a specific filesystem method class file.

Description

See also

Parameters

$pathstring
Path to the specific filesystem method class file.
$methodstring
The filesystem method to use.

Source

$abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method );

Changelog

Version Description
2.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/filesystem_method_file