The Bane of WordPress Plugin Development: register_activation_hook

If you’re developing a WordPress plugin, any initial, one-time setup work your plugin needs is done through a call to register_activation_hook() (such as registering settings, or creating a database table). Debugging problems with code you call through this hook is notoriously difficult. I think I’ve pulled my hair out over each one of the many[…]