ThemeUpgrader
extends Theme_Upgrader
in package
Admin\Overrides\ThemeUpgrader Class.
Table of Contents
- install() : bool|WP_Error
- Install a theme package.
Methods
install()
Install a theme package.
public
install(string $package[, array<string|int, mixed> $args = array() ]) : bool|WP_Error
Parameters
- $package : string
-
The full local path or URI of the package.
- $args : array<string|int, mixed> = array()
-
{ Optional. Other arguments for installing a theme package. Default empty array.
@type bool $clear_update_cache Whether to clear the updates cache if successful. Default true.
}