This function changes the order of script hooks.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ reorder_hooks \ ids='HzEpGvT6QGUYwxuX3hWB8AUq,UNs8a8IbbAVf5oi_hXbcEw5a'
{- "data": {
- "hook_order": [
- {
- "id": "HzEpGvT6QGUYwxuX3hWB8AUq",
- "weight": 100
}, - {
- "id": "UNs8a8IbbAVf5oi_hXbcEw5a",
- "weight": 200
}
]
}, - "metadata": {
- "command": "reorder_hooks",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}