The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
17 views

Can my hooked uninstall class function access a global var declared in main plugin file?

My current setup is as follows... In the main plugin file, these two hooks are set (not inside any class): register_activation_hook(__FILE__, array('DG_Setup', 'activation')); ...
1
vote
0answers
30 views

Custom message on plugin uninstall

I'm writing a small wordpress plugin that creates some custom files, but I'm wondering if there is a way to show a quick "reminder" pop-up or message when a user deactivates the plugin. I just want ...
4
votes
5answers
224 views

Remove settings if theme is deleted?

Is it possible to perform an action only if the theme is deleted (not deactivated) from the theme directory ? For example, I want to remove the theme settings from database after the theme is ...
3
votes
3answers
170 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
44 views

How to check what plugins used to be on a WordPress installation?

It's easy to see what plugins are currently disabled through /wp-admin — but how could I see what plugins used to be on an installation of WordPress and were deleted?
1
vote
1answer
113 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
97 views

Query users by capability - uninstall/deactivate callback

The situation Running on MU, I'm writing an open source/publically and freely available plugin. As I used add_screen_option() to allow users to easily setup the admin page to their likings, I'm left ...
1
vote
1answer
171 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 ...
-3
votes
1answer
26 views

I am trying to install a site that a larger organization sent me, where do I start?

I have the zip file with everything in it, but there's just not a simple way to "run"? What all do I need? Do I need my own server or should they have their own?
0
votes
2answers
57 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 ...
0
votes
1answer
86 views

How to remove links generated by SEO-smart-links?

I tried seo-smart-links plugin and it linked all my posts to tags/categories and other posts. This looks stuffing and spamming to me so I uninstalled this plugin. Now the links are still there but the ...
1
vote
1answer
202 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 ...
4
votes
2answers
322 views

Popup asking whether data should be removed on plugin uninstall

I have a plugin which creates some options in wp_options, but also creates custom post types and is used to populate that post type. Upon install it makes sense to remove the data in wp_options, but ...
1
vote
0answers
362 views

Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php

Why uninstalling the following (empty) plugin results in error? Here is my-plugin/my-plugin.php: <?php /* Plugin Name: My Plugin */ and my-plugin/uninstall.php: <?php When I click ...
2
votes
4answers
522 views

Best practice way to delete user meta data during plugin uninstall?

If a plugin stores data in the usermeta tables what is the best practice method to delete these entries for all users in uninstall.php? I could access the database directly but is there another way?
1
vote
1answer
136 views

Does plugin's uninstall.php file have access to the plugin 's object?

I read on the codex that the best way to implement a clean uninstallation functionality to a plugin is by adding a uninstall.php file inside your plugin directory. I'm wondering: can i use my ...
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. ...
1
vote
1answer
458 views

Deleting Custom Posts & Meta Data on Uninstall

My uninstall.php file won't delete my custom posts and the meta data related to them on uninstall. The plugin files get deleted, but nothing from the database. If anyone is able to have a look at ...
2
votes
1answer
118 views

Downgrading a WP3.3.1 Network Install

Good Morning-- Today I need to downgrade a site from a WP network install to a normal WP install. I thought this would be simple -- just removing these lines from wp-config.php: define( ...
2
votes
2answers
311 views

Is it appropriate to remove custom posts and terms on plugin uninstall?

This is more of a "best practices" than a question, but I was wondering, what to people typically remove when their plugin is removed? I have a plugin that does the following: registers custom post ...
2
votes
1answer
358 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 ...
37
votes
2answers
19k views

Uninstall, Activate, Deactivate a plugin: typical features & how-to

I'm making a wordpress plugin. What are typical things I should include in the uninstall feature? For example, should I delete any tables I created in the install function? Do I clean up my option ...
1
vote
1answer
1k views

How can I delete options with register_uninstall_hook?

Right now, I have this code: function mr_np_activate(){ // hook uninstall if ( function_exists('register_uninstall_hook') ) register_uninstall_hook(__FILE__,'mr_np_uninstall'); ...
0
votes
1answer
192 views

Uninstalling IntenseDebate

I have been using the IntenseDebate Comments plugin, but am unhappy with it and would like to uninstall. Supposedly due to the data synchronization feature, it shouldn't be a problem to just disable ...
2
votes
2answers
133 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 ...
0
votes
2answers
185 views

Is it possible to uninstall one plugin from within another plugin?

I'd like to be able to automatically uninstall certain plugins if they're detected (specifically Akismet and Hello Dolly), either by writing another plugin to do so or via my theme's functions.php ...
2
votes
1answer
892 views

Plugin uninstall: why run dbDelta after $wpdb->query($drop_sql)

i am reading professional wordpress. their code for uninstalling a plugin is //build our query to delete our custom table $sql = "DROP TABLE " . $table_name . ";"; //execute the query deleting the ...
3
votes
4answers
296 views

Does plugin uninstall always put WordPress back into original state?

What is a plugin lifetime within a deployed instance of WordPress? Namely: do the plugins modify existing files or do they only use defined extension points within WordPress? are plugins allowed to ...