All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
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 ...
4
votes
5answers
4k 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....
2
votes
2answers
165 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 ...