filesystem_method WordPress Filter Hook

The filesystem_method hook is used to specify the method used to access the filesystem. The possible values are 'direct', 'ssh', 'ftpext', or 'ftpsockets'. 'direct' is the default and is used for most servers. If your server does not support direct access, you will need to specify another method.

apply_filters( 'filesystem_method', string $method, array $args, string $context, bool $allow_relaxed_file_ownership ) #

Filters the filesystem method to use.


Parameters

$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

(bool)Whether to allow Group/World writable.


Top ↑

Source

File: wp-admin/includes/file.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.