Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

Uninstallation method not triggered in child theme [duplicate]

I'm currently working on a WordPress child theme and I needed a way to delete all the data on uninstall, so I found this in the WordPress documentation. I tested uninstall.php or the ...
Kalizi's user avatar
  • 111
4 votes
5 answers
5k 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 removed....
jay's user avatar
  • 151
2 votes
2 answers
198 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 ...
Scott B's user avatar
  • 5,696