Filter hook 'upgrader_pre_install'
in WP Core File wp-admin/includes/class-wp-upgrader.php at line 550
Description
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.
Occurrences
Filename |
Line Number |
wp-admin/includes/class-wp-upgrader.php |
550 |
Parameters
Type |
Name |
Description |
bool|WP_Error |
$response |
Installation response. |
array |
$hook_extra |
Extra arguments passed to hooked filters. |
PHP Doc
/**
* 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.
*
* @since 2.8.0
*
* @param bool|WP_Error $response Installation response.
* @param array $hook_extra Extra arguments passed to hooked filters.
*/