apply_filters( ‘upgrader_pre_install’, bool|WP_Error $response, array $hook_extra )

In this article

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

$res = apply_filters( 'upgrader_pre_install', true, $args['hook_extra'] );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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