apply_filters( 'upgrader_pre_download', bool $reply, string $package, WP_Upgrader $this, array $hook_extra )

Filters whether to return the package.

Parameters Parameters


(bool) Whether to bail without returning the package. Default false.


(string) The package file name.


(WP_Upgrader) The WP_Upgrader instance.


(array) Extra arguments passed to hooked filters.

Top ↑

Source Source

File: wp-admin/includes/class-wp-upgrader.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.5.0 Added the $hook_extra parameter.
3.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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