[wp-hackers] Plugin main file name

Ozh ozh at planetozh.com
Sat Aug 23 19:48:41 GMT 2008


On Sat, Aug 23, 2008 at 4:10 PM, Stephen Rider
<wp-hackers at striderweb.com> wrote:
> myplugin/plugin_main.php
> anotherplugin/plugin_main.php
> thirdplugin/plugin_main.php

Make everything in plugin_main.php within a "if
(!class_exists('strider_main')) class strider_main{}", and whenever
you update this file, update all your plugins that use it

I find this a better solution than rmarsh' plugin library: you get one
of his plugins, try to run it and, oops, no, can't work, you need to
download an extra file. Clunky.

-- 
http://planetOzh.com ~ Blog and WordPress Stuff
http://FrenchFragFactory.net ~ Daily Quake News


More information about the wp-hackers mailing list