WordPress at Your Fingertips
function is not described

Automatic_Upgrader_Skin::request_filesystem_credentials() public WP 3.7.0

Determines whether the upgrader needs FTP/SSH details in order to connect to the filesystem.

{} It's a method of the class: Automatic_Upgrader_Skin{}

No Hooks.


true|false. True on success, false on failure.


$Automatic_Upgrader_Skin = new Automatic_Upgrader_Skin();
$Automatic_Upgrader_Skin->request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
Whether the current request has failed to connect, or an error object.
Default: false
Full path to the directory that is tested for being writable.
Default: ''
Whether to allow Group/World writable.
Default: false



Since 3.7.0 Introduced.
Since 4.6.0 The $context parameter default changed from false to an empty string.

Code of Automatic_Upgrader_Skin::request_filesystem_credentials() WP 5.8.2

public function request_filesystem_credentials( $error = false, $context = '', $allow_relaxed_file_ownership = false ) {
	if ( $context ) {
		$this->options['context'] = $context;
	 * TODO: Fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version.
	 * This will output a credentials form in event of failure. We don't want that, so just hide with a buffer.
	$result = parent::request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
	return $result;