WP_Upgrader_Skin::request_filesystem_credentials() – Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
You appear to be a bot. Output may be restricted
Description
Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
Usage
$bool = WP_Upgrader_Skin::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
Parameters
- $error
- ( bool|WP_Error ) optional – Optional. Whether the current request has failed to connect, or an error object. Default false.
- $context
- ( string ) optional – Optional. Full path to the directory that is tested for being writable. Default empty.
- $allow_relaxed_file_ownership
- ( bool ) optional – Optional. Whether to allow Group/World writable. Default false.
Returns
bool True on success, false on failure.
Source
File name: wordpress/wp-admin/includes/class-wp-upgrader-skin.php
Lines:
1 to 13 of 13
public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) { $url = $this->options['url']; if ( ! $context ) { $context = $this->options['context']; } if ( ! empty( $this->options['nonce'] ) ) { $url = wp_nonce_url( $url, $this->options['nonce'] ); } $extra_fields = array(); return request_filesystem_credentials( $url, '', $error, $context, $extra_fields, $allow_relaxed_file_ownership ); }