Useful uninstall option “snippet” for your WordPress theme admin option. Basically, this reverts WordPress to the default theme and removes all theme settings from the database. Change option your_theme with your own: global $wpdb; delete_option(‘your_theme’); switch_theme(‘default’, ‘default’); wp_cache_flush(); wp_redirect(‘themes.php?activated=true’); exit();
Tag Archive for ‘snippet’
05 Nov 2008