Skip to content

Commit

Permalink
Grabbing settings from v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee committed Dec 10, 2015
1 parent afc67f0 commit 583976f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
*/
require get_template_directory() . '/inc/init.php';

add_action('after_switch_theme', 'eighteen_tags_activated');

function eighteen_tags_activated() {
$slug = get_option( 'stylesheet' );
$v1_options = get_option( 'theme_mods_18-tags-1.0.0' );
if ( $v1_options && array( '' ) == get_option( 'theme_mods_' . $slug ) ) {
update_option( 'theme_mods_' . $slug, $v1_options );
print_awesome_r( $v1_options );
}
}

/**
* Note: Do not add any custom code here. Please use a custom plugin so that your customizations aren't lost during updates.
* https://github.com/pootlepress/customisations
Expand Down

0 comments on commit 583976f

Please sign in to comment.