apply_filters( 'request_filesystem_credentials', mixed $output, string $form_post, string $type, bool $error, string $context, bool $allow_relaxed_file_ownership, array $extra_fields )

Filters the filesystem credentials form output.


Returning anything other than an empty string will effectively short-circuit output of the filesystem credentials form, returning that value instead.



Form output to return instead. Default empty.


The URL to post the form to.


Chosen type of filesystem.


Whether the current request has failed to connect. Default false.


Full path to the directory that is tested for being writable.


Whether to allow Group/World writable. Default false.


Extra POST fields.


File: wp-admin/includes/file.php

View on GitHub


Version Description
WP-4.6.0 The $context parameter default changed from false to an empty string.
WP-2.5.0 Introduced.