On this page
apply_filters( 'upgrader_package_options', array $options )
Filters the package options before running an update.
Description
See also ‘upgrader_process_complete’.
Parameters
$optionsarray-
Options used by the upgrader.
packagestringPackage for update.destinationstringUpdate location.clear_destinationboolClear the destination resource.clear_workingboolClear the working resource.abort_if_destination_existsboolAbort if the Destination directory exists.is_multiboolWhether the upgrader is running multiple times.hook_extraarrayExtra hook arguments.actionstringType of action. Default'update'.typestringType of update process. Accepts'plugin','theme', or'core'.bulkboolWhether the update process is a bulk update. Default true.pluginstringPath to the plugin file relative to the plugins directory.themestringThe stylesheet or template name of the theme.language_update_typestringThe language pack update type. Accepts'plugin','theme', or'core'.language_updateobjectThe language pack update offer.
Source
File:
wp-admin/includes/class-wp-upgrader.php. View all references$options = apply_filters( 'upgrader_package_options', $options );Related
Used By
Used By Description WP_Upgrader::run() wp-admin/includes/class-wp-upgrader.php Run an upgrade/installation.
Changelog
Version Description 4.3.0 Introduced.
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_package_options