request_filesystem_credentials

request_filesystem_credentials

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('request_filesystem_credentials') is found 1 times:

  • /wp-admin/includes/file.php line 2372
    2368
    2369
    2370
    2371
    2372
    2373
    2374
    2375
    2376
    2377
    2378
    *                                                    being writable.
     * @param array         $extra_fields                 Extra POST fields.
     * @param bool          $allow_relaxed_file_ownership Whether to allow Group/World writable.
     */
    $req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership );
     
    if ( '' !== $req_cred ) {
        return $req_cred;
    }
     
    if ( empty( $type ) ) {

See this hook used in plugins: