apply_filters( 'filesystem_method', string $method, array $args, string $context, bool $allow_relaxed_file_ownership )
- Since
- 2.6.0
Filters the filesystem method to use.
Compatibility
- WordPress
- since 2.6.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
Where this hook fires · 1
wp-admin/includes/file.php:2337get_filesystem_method()
Source code
* * @param string $method Filesystem method to return. * @param array $args An array of connection details for the method. * @param string $context Full path to the directory that is tested for being writable. * @param bool $allow_relaxed_file_ownership Whether to allow Group/World writable. */ return apply_filters( 'filesystem_method', $method, $args, $context, $allow_relaxed_file_ownership );} /** * Displays a form to the user to request for their FTP/SSH details in order * to connect to the filesystem. *Changelog
Introduced in 2.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.