On this page
apply_filters( 'upgrader_pre_install', bool|WP_Error $response, array $hook_extra )
Filters the installation response before the installation has started.
Description
Returning a value that could be evaluated as a WP_Error will effectively short-circuit the installation, returning that value instead.
Parameters
$responsebool|WP_Error-
Installation response.
$hook_extraarray-
Extra arguments passed to hooked filters.
Source
File: wp-admin/includes/class-wp-upgrader.php. View all references
$res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );
Related
Used By
| Used By | Description |
|---|---|
| WP_Upgrader::install_package() wp-admin/includes/class-wp-upgrader.php | Install a package. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_pre_install