Closed spacedmonkey closed 1 year ago
(Adding here for transparency)
As mentioned on Slack, the deleted_plugin
hook can be used for this. It fires right before the po
and mo
files are deleted.
We could have do the same for themes as well right?
Yes. For themes it's the deleted_theme
hook.
This conversation inspires me!
/**
* Plugin Name: Delete WordPress
* Plugin URI: https://github.com/szepeviktor/delete-wordpress
* Description: Just delete WordPress on plugin activation.
*/
WordPress core removes translations files on plugin / theme is deleted. This plugin should do the same.