WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Upgrader_Skin::request_filesystem_credentials() public WP 2.8.0

Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.

Это метод класса: WP_Upgrader_Skin{}

Хуков нет.

Возвращает

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

Использование

$WP_Upgrader_Skin = new WP_Upgrader_Skin();
$WP_Upgrader_Skin->request_filesystem_credentials( $error, $context, $allow_relaxed_file_ownership );
$error(true/false/WP_Error)
Whether the current request has failed to connect, or an error object.
По умолчанию: false
$context(строка)
Full path to the directory that is tested for being writable.
По умолчанию: ''
$allow_relaxed_file_ownership(true/false)
Whether to allow Group/World writable.
По умолчанию: false

Заметки

  • Смотрите: request_filesystem_credentials()

Список изменений

С версии 2.8.0 Введена.
С версии 4.6.0 The $context parameter default changed from false to an empty string.

Код WP_Upgrader_Skin::request_filesystem_credentials() WP 5.5.1

wp-admin/includes/class-wp-upgrader-skin.php
<?php
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 );
}