function cc2_theme_deactivation($new_name, $new_theme) { // save current theme settings //require_once( get_template_directory() . '/includes/extras.php' ); cc2_Helper::update_settings_backup('theme_mods', get_theme_mods()); // disable theme update_option('cc2_theme_status', 'disabled'); set_transient('cc2_theme_active', false); //new __debug( cc2_Helper::get_settings_backup( 'theme_mods' ), 'backup of theme_mods' ); }