lazy smart shortcodes
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,
- trace,
- plugin dependencies
Lazy shortcodes
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.
Additionally,
- They don’t waste their time doing things that other plugins and APIs can do for them.
- They don’t do things until necessary
Smart shortcodes
Understand the context in which they’re being executed and adjust their behaviour accordingly.
e.g.
- 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
Trace
Problem determination in the background. Debug information is not written to the screen. Easily turn on and offable.
Plugin dependencies
Plugins shouldn’t just crash. They can become active when the dependencies are satisfied.
Leave a Reply
You must be logged in to post a comment.