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

request_filesystem_credentials хук-фильтр . WP 2.5.0

Filters the filesystem credentials.

Ищем WP-разработчика! Фулл-тайм, удаленка, хорошая зарплата, соц. пакет. Подробности.
Компания Boosta.

Returning anything other than an empty string will effectively short-circuit output of the filesystem credentials form, returning that value instead.

A filter should return true if no filesystem credentials are required, false if they are required but have not been provided, or an array of credentials if they are required and have been provided.


add_filter( 'request_filesystem_credentials', 'filter_function_name_3429', 10, 7 );
function filter_function_name_3429( $credentials, $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership ){
	// filter...

	return $credentials;
Credentials to return instead.
По умолчанию: empty string
The URL to post the form to.
Chosen type of filesystem.
Whether the current request has failed to connect, or an error object.
Full path to the directory that is tested for being writable.
Extra POST fields.
Whether to allow Group/World writable.

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

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

Где вызывается хук

wp-admin/includes/file.php 2122
$req_cred = apply_filters( 'request_filesystem_credentials', '', $form_post, $type, $error, $context, $extra_fields, $allow_relaxed_file_ownership );

Где используется хук в ядре WordPress

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