[wp-hackers] pluggable.php and 'plugins_loaded' hook.

Jeremy Clarke jer at simianuprising.com
Thu Aug 25 13:27:56 UTC 2011


On Sun, Aug 14, 2011 at 10:11 AM, Ozh <ozh at ozh.org> wrote:

>
> Clean solution: can't think of any...
>
>
Cleanest solution would be to use an mu-plugin, as they load before all
normal plugins. You could make your whole plugin an mu-plugin or have a
special one that just handles this particular task ahead of time. Obviously
it won't solve the problem if *another* mu plugin already defined the
function, but that seems a lot less likely than a regular plugin.

This is probably not a good solution for a publicly released plugins as it
involves hand-uploading files but for a custom installation an mu-plugin
isn't a huge burden (and for custom scenarios they have many uses once you
learn how to exploit their power).

http://codex.wordpress.org/Must_Use_Plugins

-- 
Jeremy Clarke • jeremyclarke.org
Code and Design • globalvoicesonline.org


More information about the wp-hackers mailing list