Update the code to ensure that we are following best practices for activating and deactivating the plugin. We should be using: register_activation_hook() register_deactivation_hook() register_uninstall_hook() http://codex.wordpress.org/Plugin_API
Update the code to ensure that we are following best practices for activating and deactivating the plugin.
We should be using:
register_activation_hook()
register_deactivation_hook()
register_uninstall_hook()
http://codex.wordpress.org/Plugin_API