[wp-hackers] pluggable.php and 'plugins_loaded' hook.
ozh at ozh.org
Sun Aug 14 14:11:41 UTC 2011
name your plugin dir & file zzz999-myplugin/zzz999plugin.php so it's
included hopefully last, and check if function_exists() to check if a
previously loaded plugin has the same pluggable function redefined.
Clean solution: can't think of any...
On Sun, Aug 14, 2011 at 3:39 PM, 24/7 <24-7 at gmx.net> wrote:
> while a discussion i just have with some other dev, that Q came up: "*How
> would I check if some plugin already re-defines a pluggable function before
> overwriting a pluggable function with my own ... pluggable function*?".
> Note: pluggable.php loads *before* the 'plugins_loaded' hook.
> Best wishes,
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
http://ozh.org/ - @ozh on Twitter
WordPress plugins? I wrote a book! http://amzn.to/plugindevbook
More information about the wp-hackers