WordPress Plugin Activation, Deactivation, and Uninstall Hooks Explained
Plugin activation, deactivation and uninstall hooks A plugin has a life cycle: it is activated, runs while active, is deactivated and finally deleted. WordPress has a hook for each of these moments, and each one has its own job. Activation sets things up, deactivation removes temporary side effects but keeps the data, and uninstall removes…