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

(mixed) Form output to return instead. Default empty.

$form_post

(string) The URL to post the form to.

$type

(string) Chosen type of filesystem.

$error

(bool) Whether the current request has failed to connect. Default false.

$context

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

$allow_relaxed_file_ownership

(bool) Whether to allow Group/World writable. Default false.

$extra_fields

(array) 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.