apply_filters( 'upgrader_package_options', array $options )

Filters the package options before running an update.


See also ‘upgrader_process_complete’.

Top ↑


$options array
Options used by the upgrader.
  • packagestring
    Package for update.
  • destinationstring
    Update location.
  • clear_destinationbool
    Clear the destination resource.
  • clear_workingbool
    Clear the working resource.
  • abort_if_destination_existsbool
    Abort if the Destination directory exists.
  • is_multibool
    Whether the upgrader is running multiple times.
  • hook_extraarray
    Extra hook arguments.
    • actionstring
      Type of action. Default 'update'.
    • typestring
      Type of update process. Accepts 'plugin', 'theme', or 'core'.
    • bulkbool
      Whether the update process is a bulk update. Default true.
    • pluginstring
      Path to the plugin file relative to the plugins directory.
    • themestring
      The stylesheet or template name of the theme.
    • language_update_typestring
      The language pack update type. Accepts 'plugin', 'theme', or 'core'.
    • language_updateobject
      The language pack update offer.

Top ↑


File: wp-admin/includes/class-wp-upgrader.php. View all references

$options = apply_filters( 'upgrader_package_options', $options );

Top ↑


Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.