[wp-hackers] Make a function available to other plugins

Stephen Rider wp-hackers at striderweb.com
Sun Sep 18 19:00:17 UTC 2011

Note that you can also add custom actions and filters to your plugins.  That is, you can put a do_action in your plugin, which other plugins can hook into by using the equivalent add_action.

Stephen Rider

On Aug 10, 2011, at 6:12 AM, Alex Hempton-Smith wrote:

> I'm developing a plugin that other plugins can integrate with, they will
> need access to a function within my plugin. Obviously, if their plugin is
> loaded before mine, it will result in an error. How do I ensure that my
> plugin will be loaded first?
> Likewise, if I want to build in some compatibility with another plugin
> (BuddyPress), how do I make sure that is loaded before mine?
> I could use 'plugins_loaded' with a high priority, but that doesn't seem
> very foolproof to me?
> - - - -
> Kind regards,
> Alex Hempton-Smith
> www.alexhemptonsmith.com
> www.twitter.com/hempsworth
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list