Filters the filesystem credentials.
Description
Returning anything other than an empty string will effectively short-circuit output of the filesystem credentials form, returning that value instead.
A filter should return true if no filesystem credentials are required, false if they are required but have not been provided, or an array of credentials if they are required and have been provided.
Parameters
$credentials
mixed- Credentials to return instead. Default empty string.
$form_post
string- The URL to post the form to.
$type
string- Chosen type of filesystem.
$error
bool|WP_Error- Whether the current request has failed to connect, or an error object.
$context
string- Full path to the directory that is tested for being writable.
$extra_fields
array- Extra POST fields.
$allow_relaxed_file_ownership
bool- Whether to allow Group/World writable.
Source
$req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership );
User Contributed Notes
You must log in before being able to contribute a note or feedback.