HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Best way to load user meta data in plugin
I'm writing a plugin that works off some fired events. One of the events is DiscussionModel_AfterDiscussionSummaryQuery_Handler, which passes in most of a built sql statement in what I'm calling $result. I'm interesting in getting at some data that will require another query prior to executing this one, such as $this->GetUserMeta(), but the inclusion of this statement (or any other SQL) causes the query built prior to my plugin to fail (what I'm looking for gets inserted into that query, rather than executing on its own). (fired events from controllers do not exhibit this behavior)
Is there a specific place that would be appropriate to initialize the plugin and use a static scoped variable to store the data?
Is there a specific place that would be appropriate to initialize the plugin and use a static scoped variable to store the data?
Tagged:
0