How can I recognize when plugins.fireHook is throwed?

  • GNU/Linux

    I need to recognize when the hook is fire in the pages, because for some pages in my plugin I need to do something.

    plugins.fireHook('filter:topics.get', {topics: topics, uid: uid}, next);

    is there some method that I can use to do this?

  • Admin

    You can use the filter:<templateName>.build hooks. For the category page it would be, for a topic page it would be and so on.



Looks like your connection to NodeBB was lost, please wait while we try to reconnect.