[wp-hackers] pluggable functions

Mike Schinkel mike at newclarity.net
Sat Oct 27 22:13:19 UTC 2012

Hi Peter,

Thanks for answering.

On Oct 27, 2012, at 5:48 PM, peter baylies <pbaylies at semperfiwebdesign.com> wrote:
> Say you have a free and a pro version of the same plugin, and they share a
> lot of code; and then someone upgrades to the pro version from the free
> version, without first deactivating the free version.

So are you just defining a "pluggable" here as  a different named file of functions and/or classes that you can swap out for your require()?

> say someone else forks your plugin without changing all the function names
> / prefixes, and someone tries to install both your plugin and the forked
> plugin.

Still not seeing this unless you are saying the pluggable loads one or the other but not both. I guess I need code example to fully understand.


More information about the wp-hackers mailing list