apply_filters( 'upgrader_package_options', array $options )
Filters the package options before running an update.
Description
See also ‘upgrader_process_complete’.
Parameters
-
$options
array -
Options used by the upgrader.
package
stringPackage for update.destination
stringUpdate location.clear_destination
boolClear the destination resource.clear_working
boolClear the working resource.abort_if_destination_exists
boolAbort if the Destination directory exists.is_multi
boolWhether the upgrader is running multiple times.hook_extra
arrayExtra hook arguments.action
stringType of action. Default'update'
.type
stringType of update process. Accepts'plugin'
,'theme'
, or'core'
.bulk
boolWhether the update process is a bulk update. Default true.plugin
stringPath to the plugin file relative to the plugins directory.theme
stringThe stylesheet or template name of the theme.language_update_type
stringThe language pack update type. Accepts'plugin'
,'theme'
, or'core'
.language_update
objectThe language pack update offer.
Source
File:
wp-admin/includes/class-wp-upgrader.php
. View all references$options = apply_filters( 'upgrader_package_options', $options );
Changelog
Changelog Version Description 4.3.0 Introduced.
User Contributed Notes