Methods |
public
|
install(string $hostname, string $path = '', array $opts = []): bool
Install Vanilla into a pre-existing location
Install Vanilla into a pre-existing location
Parameters
$hostname |
domain or subdomain to install Vanilla
|
$path |
optional path under hostname
|
$opts |
additional install options
|
|
#
|
public
|
get_version(string $hostname, string $path = ''): string
Get installed version
|
#
|
public
|
get_versions(): array
Get Vanilla framework versions
Get Vanilla framework versions
|
#
|
public
|
db_config(string $hostname, string $path = ''): array|bool
Get database configuration for a blog
Get database configuration for a blog
Parameters
$hostname |
domain or subdomain of wp blog
|
$path |
optional path
|
|
#
|
public
|
update_all(string $hostname, string $path = '', string $version = null): bool
|
#
|
public
|
update(string $hostname, string $path = '', string $version = null): bool
Update Vanilla to latest version
Update Vanilla to latest version
Parameters
$hostname |
domain or subdomain under which WP is installed
|
$path |
optional subdirectory
|
$version |
version to upgrade
|
|
#
|
public
|
get_admin(string $hostname, string $path = ''): ?string
|
#
|
public
|
change_admin(string $hostname, string $path, array $fields): bool
Parameters
$fields |
available option: password, user, email
|
|
#
|