Plugin Help - Hook only called once

Just writing my first plugin, I’m hooking Tracker.Action.record and - for this example writing a log.

When I first enable the plugin the log is written correctly, but subsequent hits do not hit the function. If I disable and re-enable the plugin, again the first hit is recorded correctly.

Could someone point to me what I’m doing wrong?


Ran into this myself recently, figured I would post what fixed the case I ran into. In the array returned by the getInformation() hook for your plugin I had to set “TrackerPlugin” => true.

This solved it and the Tracker hooks are now called as expected.