WP_Filesystem_SSH2::is_writable()publicWP 2.7.0

Checks if a file or directory is writable.

Метод класса: WP_Filesystem_SSH2{}

Хуков нет.

Возвращает

true|false. Whether $path is writable.

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

$WP_Filesystem_SSH2 = new WP_Filesystem_SSH2();
$WP_Filesystem_SSH2->is_writable( $path );
$path(строка) (обязательный)
Path to file or directory.

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

С версии 2.7.0 Введена.

Код WP_Filesystem_SSH2::is_writable() WP 6.5.2

public function is_writable( $path ) {
	// PHP will base its writable checks on system_user === file_owner, not ssh_user === file_owner.
	return true;
}