过滤文件系统凭据表单输出。
原型
apply_filters( 'request_filesystem_credentials', mixed $output, string $form_post, string $type, bool $error, string $context, bool $allow_relaxed_file_ownership, array $extra_fields )
描述
返回除空字符串以外的任何内容将有效地短路文件系统凭证表单的输出,而是返回该值。
参数
$output
(mixed)
表格输出改为返回。默认为空。
$form_post
(string)
要将表单发布到的URL。
$type
(string)
选择的文件系统类型。
$error
(bool)
当前请求是否无法连接。默认为false。
$context
(string)
被测试为可写的目录的完整路径。
$allow_relaxed_file_ownership
(bool)
是否允许Group / World可写。默认为false。
$extra_fields
(array)
额外的POST字段。
源文件
路径:wp-admin/includes/file.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/request_filesystem_credentials/