Core Class
View Source on Trac ↗
Core Class
Plugin_Upgrader
class Plugin_Upgrader
// Constructor: function Object() { [native code] } Core class used for upgrading/installing plugins.
Methods 11 methods
| Method / Return | Description |
|---|---|
| upgrade_strings() void | Initializes the upgrade strings. |
| install_strings() void | Initializes the installation strings. |
| install() (bool | Install a plugin package.
Parameters: $package: mixed, $args: mixed |
| upgrade() (bool | Upgrades a plugin.
Parameters: $plugin: mixed, $args: mixed |
| bulk_upgrade() (array | Upgrades several plugins at once.
Parameters: $plugins: mixed, $args: mixed |
| check_package() (string | Checks that the source package contains a valid plugin.
Parameters: $source: mixed |
| plugin_info() (string | Retrieves the path to the file that contains the plugin info. |
| deactivate_plugin_before_upgrade() (bool | Deactivates a plugin before it is upgraded.
Parameters: $response: mixed, $plugin: mixed |
| active_before() (bool | Turns on maintenance mode before attempting to background update an active plugin.
Parameters: $response: mixed, $plugin: mixed |
| active_after() (bool | Turns off maintenance mode after upgrading an active plugin.
Parameters: $response: mixed, $plugin: mixed |
| delete_old_plugin() (bool | Deletes the old plugin during an upgrade.
Parameters: $removed: mixed, $local_destination: mixed, $remote_destination: mixed, $plugin: mixed |
Properties
| Property / Type | Description |
|---|---|
| $result mixed public | No description available. |
| $bulk mixed public | No description available. |
| $new_plugin_data mixed public | No description available. |
Class Information
Since Version
2.8.0
Source File
wp-admin/includes/class-plugin-upgrader.php
Advertisement