Runs configured point rules for a user and action key (administrators only; same as Engine::award).
- Ability
clanbite-points/trigger-action- Label
- Trigger points action
- Category
- Access
- Checked by a permission callback
Input
| Property | Type | Description |
|---|---|---|
user_id required | integer | Recipient user ID. |
action_key required | string | Registered action slug matching rule configuration. |
context | object | Optional context passed to hooks. |
JSON Schema
{
"type": "object",
"properties": {
"user_id": {
"type": "integer",
"description": "Recipient user ID."
},
"action_key": {
"type": "string",
"description": "Registered action slug matching rule configuration."
},
"context": {
"type": "object",
"description": "Optional context passed to hooks.",
"additionalProperties": true
}
},
"required": [
"user_id",
"action_key"
]
}Output
| Property | Type | Description |
|---|---|---|
ok required | boolean | |
user_id required | integer | |
action_key required | string |
JSON Schema
{
"type": "object",
"properties": {
"ok": {
"type": "boolean"
},
"user_id": {
"type": "integer"
},
"action_key": {
"type": "string"
}
},
"required": [
"ok",
"user_id",
"action_key"
]
}Defined in inc/Points_Abilities.php