A WordPress-centric search engine for devs and theme authors



request_filesystem_credentials ›

Since4.6.0
Deprecatedn/a
apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership )
Parameters: (7)
  • (mixed) $output Form output to return instead. Default empty.
    Required: Yes
  • (string) $form_post The URL to post the form to.
    Required: Yes
  • (string) $type Chosen type of filesystem.
    Required: Yes
  • (bool) $error Whether the current request has failed to connect. Default false.
    Required: Yes
  • (string) $context Full path to the directory that is tested for being writable.
    Required: Yes
  • (bool) $allow_relaxed_file_ownership Whether to allow Group/World writable. Default false.
    Required: Yes
  • (array) $extra_fields Extra POST fields.
    Required: Yes
Defined at:
Codex:

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.





Source

$req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership );