0
votes
1answer
10 views

Deletion of shared options using uninstall.php

I'm using uninstall.php for my plugin to delete all the traces my plugin did to a site on uninstall (delete). I did it in a good way, but even after the deletion there are some fields in the options ...
4
votes
3answers
350 views

How to delete custom taxonomy terms in plugin's uninstall.php?

I am writing my plugin's uninstall.php file and would like it to delete any terms that were created in the plugin's custom taxonomy. In the plugin's uninstall.php file I am using this: // Delete all ...
1
vote
1answer
145 views

How does uninstalling WordPress plugins work?

I'm trying to drop a database table when the user uninstalls the plugin. But what does uninstalling a WordPress plugin really mean? There's the deactivation hook and there's also the uninstall hook. ...
1
vote
1answer
262 views

uninstall.php file in Plugin to clean DB

I am aware that WordPress provides Plugins a nice way to clean up the db if the Plugin is deleted by providing the uninstall.php hook. You just have to place the cleaning code and it works. But my ...
0
votes
2answers
62 views

Remove .htaccess portion upon plugin deactivation?

I have a plugin that inserts some rewrite rule in the .htaccess file. However, upon deactivating it, doesn't remove said rule. The rule is nested in # BEGIN My plugin and # END My plugin. I want to ...
1
vote
1answer
227 views

How to remove plugin-specific custom taxonomy terms when plugin is uninstalled?

I'm trying to write a class that would allow for easy removal of all plugin-related data when the plugin is uninstalled. Specifically, I want it to remove plugin options, custom post type entries, and ...
0
votes
1answer
37 views

Can plugin2 uninstall plugin1 at the very beginning of plugin2's installation?

As per the title. I have a new version of a plugin. It installs fine on a clean WordPress. When a user tries to install it when they have a previous version installed, the plugin does not function. ...
2
votes
1answer
432 views

Plugin Uninstall and Deactivate via Options Menu

I'm creating my first plugin (modifying an existing one for what I need) and although it's working fine i am trying to create a simple options menu to allow either deactivation of the plugin, or ...
2
votes
2answers
141 views

Example of uninstaller routine to remove all custom theme options from wp_options

All of my theme's custom options are preceeded with "mytheme_" + option. For example, mytheme_color1, mytheme_color2, mytheme_body_font_color, etc... I'd like to create a plugin that uninstalls all ...