WPDev.one
Core Class

Theme_Upgrader

class Theme_Upgrader // Constructor: function Object() { [native code] }

Core class used for upgrading/installing themes.

Methods 12 methods

Method / Return Description
upgrade_strings()
void

Initializes the upgrade strings.

install_strings()
void

Initializes the installation strings.

check_parent_theme_filter()
bool

Checks if a child theme is being installed and its parent also needs to be installed.

Parameters: $install_result: mixed, $hook_extra: mixed, $child_result: mixed
hide_activate_preview_actions()
array

Don't display the activate and preview actions to the user.

Parameters: $actions: mixed
install()
(bool

Install a theme package.

Parameters: $package: mixed, $args: mixed
upgrade()
(bool

Upgrades a theme.

Parameters: $theme: mixed, $args: mixed
bulk_upgrade()
(array[]

Upgrades several themes at once.

Parameters: $themes: mixed, $args: mixed
check_package()
(string

Checks that the package source contains a valid theme.

Parameters: $source: mixed
current_before()
(bool

Turns on maintenance mode before attempting to upgrade the active theme.

Parameters: $response: mixed, $theme: mixed
current_after()
(bool

Turns off maintenance mode after upgrading the active theme.

Parameters: $response: mixed, $theme: mixed
delete_old_theme()
bool

Deletes the old theme during an upgrade.

Parameters: $removed: mixed, $local_destination: mixed, $remote_destination: mixed, $theme: mixed
theme_info()
(WP_Theme

Gets the WP_Theme object for a theme.

Parameters: $theme: mixed

Properties

Property / Type Description
$result
mixed
public
No description available.
$bulk
mixed
public
No description available.
$new_theme_data
mixed
public
No description available.

Class Information

Since Version
2.8.0
Source File
wp-admin/includes/class-theme-upgrader.php
Advertisement