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.


Description

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


Parameters

$output

Form output to return instead. Default empty.

$form_post

The URL to post the form to.

$type

Chosen type of filesystem.

$error

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

$context

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

$allow_relaxed_file_ownership

Whether to allow Group/World writable. Default false.

$extra_fields

Extra POST fields.


Source

File: wp-admin/includes/file.php

View on GitHub



Changelog

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