wp-cli and plugin development with future and past compatibility (word camp prague)
Post on 17-Jul-2015
188 Views
Preview:
TRANSCRIPT
• Avoid $wpdb
• Prefix option names
• Sandbox everything
• Use correct filters
• Use the install and de-install hook (clean up your crap)
• Write proper documentation
• Put it on Github
• Caching
Plugin manifesto• Sandboxed plugin environment
• Namespaces
• Predefined documented variables
• Proper hooks usage
• Easy compatibility checks
• wp-cli integration
top related