allow core to tap into NodeBB's hook system, closes #989