Filters the installation response before the installation has started.
Returning a value that could be evaluated as a WP_Error will effectively short-circuit the installation, returning that value instead.
$responsebool|WP_Error
$hook_extraarray
$res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upgrader_pre_install