File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -291,8 +291,15 @@ Support for Array notated callbacks was introduced in Moodle 4.4. If you are wri
291291
292292:::
293293
294- Hook callbacks are executed in the order of their priority from highest to lowest.
295- Any guidelines for callback priority should be described in hook descriptions if necessary.
294+ ### Hook Callback Execution Order
295+
296+ Hook callbacks are executed according to their priority, in ** descending order** — from the ** highest number** to the ** lowest** .
297+
298+ - ** Default priority:** ` 100 `
299+ - ** Higher numbers:** executed ** earlier**
300+ - ** Lower numbers (down to 0):** executed ** later**
301+
302+ If a particular hook requires callbacks to run in a specific order, its documentation should include guidelines on what priorities to use.
296303
297304::: caution
298305
You can’t perform that action at this time.
0 commit comments