This is where I’d want to show you the “big picture” of how WordPress works, how pages get loaded and when shortcodes get invoked.
Some plugins do a bit more than they should. The new Bobbing Wide / oik API supports
- lazy shortcodes,
- smart shortcodes,
- plugin dependencies
Implement “callbacks” and deferred loading of functionality.
They give WordPress a business card saying.
When you need me, here’s how to get in touch.
- They don’t waste their time doing things that other plugins and APIs can do for them.
- They don’t do things until necessary
Understand the context in which they’re being executed and adjust their behaviour accordingly.
- You want to be able to control when a shortcode will get expanded
- You don’t want HTML to appear in tooltips
- You don’t want shortcodes expanded on admin pages
Problem determination in the background. Debug information is not written to the screen. Easily turn on and offable.
Plugins shouldn’t just crash. They can become active when the dependencies are satisfied.