[Gambas-user] Sub and Function hijack ?? is this possible ?
T Lee Davidson
t.lee.davidson at gmail.com
Wed Feb 17 21:52:51 CET 2021
On 2/17/21 3:18 PM, olivier coquet wrote:
> For me a plugin is developed later than program, Program can't know what plugin will make.
I haven't been reading all the messages in this thread. But, I wonder if it might be helpful for you to consider how Wordpress
handles plugins.
Very simply, when a new plugin is installed, it is allowed to run its installation routine. During this process, the plugin
registers certain event 'hooks' into the database. Then, when a hooked event occurs, the main program knows to call the
appropriate routine from the plugin. It has been a while since I have been under the Wordpress hood, but from what I recall, a
handle on the database connection is passed to the called plugin routine so it can get the data it needs to complete its function.
--
Lee
More information about the User
mailing list