Skip to main content

benecaster_manager_package_before_verify

Action Free addon-manager

Fires when a package from Benecaster’s update server is about to be downloaded and its signature checked, for an add-on update, an install, or the Add-on Manager’s own update.

Order. Each pair fires once, nested: benecaster_manager_addon_before_update → benecaster_manager_package_before_verify → (benecaster_manager_package_verified … benecaster_manager_addon_updated) or (benecaster_manager_package_rejected → benecaster_manager_addon_update_failed). An install fires benecaster_manager_addon_before_install → (benecaster_manager_addon_installed or benecaster_manager_addon_install_failed), with the package actions in between. The Manager’s own update fires only the package actions. Nothing an action returns is read.

Fired by the Benecaster Add-on Manager, not by Benecaster itself, and only while the Manager is active, so no function_exists() guard is needed. No hook can switch the signature check off, change the updates host, change where the download goes or where the site token is sent, or turn a refusal into an install. No argument carries a site token.

Parameters

Name Type Default Description
$package string — The download URL exactly as the license server sent it. It carries no credential.
$context array — Keys `action` (`'update'`, `'install'` or `''`), `slug` (the product slug, such as `benecaster-addon-guest-manager` or `benecaster-manager`; `''` if unknown) and `plugin` (the plugin basename on an update, else `''`).

Need this built rather than just documented? See our services →