filesystem_method_file
Filters the path for a specific filesystem method class file.
Использование
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(строка)
- Path to the specific filesystem method class file.
- $method(строка)
- The filesystem method to use.
Список изменений
С версии 2.6.0 | Введена. |
Где вызывается хук
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 );