Often we’ll create a few custom plugins for clients sites at Sennza and those plugins will require other plugins to be active to function. Sometimes we get around that by bundling all the plugins into ‘one plugin to rule them all’ and other times we’ve checked if classes or functions exists and if they don’t we step over those sections of code.
Daniel Dvorkin has come up with a plugin that gets around this problem in a graceful way after a conversation with Ryan on Twitter. We’re pretty impressed with this solution so we’ll probably end up baking this into our development process going forward. Check out the link and see what you think!