If you are developing a WordPress plugin, it good idea to write some automated tests for it. Pound is a light weight WordPress plugin that will run tests you write for your own plugin. It’s not a framework or library and introduces no dependencies for your plugin. It just runs tests that your write […]
WordPress register_activation_hook not firing
The register_activation_hook() in WordPress looks for the “wp-content/plugins” directory in the plug-in file’s canonical pathname. So, if your files physically live somewhere other than in your WordPress tree, WordPress (PHP) calculates inappropriate paths. The Solution: Move all your plug-in files into your WordPress tree and the activation hook should start firing.
Force WordPress To Check For Plugin Updates
Sometimes you know there is an update for your plugin but WordPress doesn’t know about it yet. You can force WordPress to check for plugin updates by deleting the content out of the _site_transient_update_plugins row in the wp_options table. After running the query below on your WordPress database, login into your WordPress admin panel, navigate […]