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?

  • NodeBB 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.

Suggested Topics

  • 2
  • 1
  • 3
  • 6
  • 31
| | | |