[Gambas-user] Sub and Function hijack ?? is this possible ?

olivier coquet ocoquet at 3d-phenomen.fr
Thu Feb 18 14:37:52 CET 2021


Hello Lee, and thank you for these very interesting remarks.

Friendship
Olivier Coquet

Le 17/02/2021 à 21:52, T Lee Davidson a écrit :
> 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.
>
>



More information about the User mailing list