apply_filters( 'upgrader_package_options', array $options )
Filters the package options before running an update.
Description
See also ‘upgrader_process_complete’.
Parameters
- $options
-
Options used by the upgrader.<br>
- 'package'
(string) Package for update.<br> - 'destination'
(string) Update location.<br> - 'clear_destination'
(bool) Clear the destination resource.<br> - 'clear_working'
(bool) Clear the working resource.<br> - 'abort_if_destination_exists'
(bool) Abort if the Destination directory exists.<br> - 'is_multi'
(bool) Whether the upgrader is running multiple times.<br> - 'hook_extra'
(array) Extra hook arguments.<br>- 'action'
(string) Type of action. Default 'update'.<br> - 'type'
(string) Type of update process. Accepts 'plugin', 'theme', or 'core'.<br> - 'bulk'
(bool) Whether the update process is a bulk update. Default true.<br> - 'plugin'
(string) Path to the plugin file relative to the plugins directory.<br> - 'theme'
(string) The stylesheet or template name of the theme.<br> - 'language_update_type'
(string) The language pack update type. Accepts 'plugin', 'theme', or 'core'.<br> - 'language_update'
(object) The language pack update offer.<br>
- 'action'
- 'package'
Source
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |