mycred_userpro_insufficient
Description
This filter allows you to adjust the message a user sees in the chat window when they have run out of funds. Used by the UserPro Private Messaging hook.
Available since version 1.1.3
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
$message |
string | Yes | The message to show users. Defaults to “Insufficient Funds” wrapped in a div element to be shown as a warning message. |
$from |
int | No | The numeric ID of the user sending the message. |
$to |
int | No | The numeric ID of the message recipient. |
$hook |
obj | No | The hook object. |
Used By
| Package | Prio. | Description |
|---|---|---|
| Not used by any built-in package. | ||
Examples
Example 1: Display a custom message with a link to users when they run out of funds (assuming you charge users for sending messages).