benecaster_manager_install_error_message
Filters the message a Ready to install card shows when an install is refused. Use it to point clients at your own help page.
Return the message to show. Anything but a non-empty string keeps the Manager’s own message. The refusal, its code and its HTTP status never change.
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 |
|---|---|---|---|
$message |
string |
— | The Manager's message, translated in its `benecaster-manager` text domain. |
$code |
string |
— | The advisory REST error code, such as `benecaster_manager_not_entitled`. |
$slug |
string |
— | The add-on's entitlement slug, such as `benecaster-addon-guest-manager`. |
Returns:
string
Need this built rather than just documented? See our services →