Add explicit warning to docs about event registering logic #10475
Labels
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Milestone
There are two very similar functions listed in this document
https://developer.piwik.org/api-reference/Piwik/Plugin#getlisthooksregistered
registerEvents()
getListHooksRegistered()
If you by mistake implement both in same plugin the latter one will override the former one and events registered in first one will be lost.
Error can happen easily if basing work on different plugins which use either one of this variants.
Also seems that events and hooks terminology is used interchangelably and should be explicitely stated that those two mean the same thing.
It can be very confusin
The text was updated successfully, but these errors were encountered: