Filters the filesystem credentials.
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.
$credentialsmixed
$form_poststring
$typestring
$errorbool|WP_Error
$contextstring
$extra_fieldsarray
$allow_relaxed_file_ownershipbool
$req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/request_filesystem_credentials