Skip to content

Instantly share code, notes, and snippets.

@mattonomics
Created October 4, 2012 15:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattonomics/3834218 to your computer and use it in GitHub Desktop.
Save mattonomics/3834218 to your computer and use it in GitHub Desktop.
Reset all the things
<?php
// drop this in your custom.php file. run it ONCE or it will continue to reset everything.
// for now, this only works for Thesis Classic
include_once(dirname(__FILE__) . '/seed.php');
$options = array(
'boxes', 'templates', 'packages', 'snippets', 'vars', 'css', 'custom_css'
);
foreach ($options as $option) {
var_dump(function_exists("thesis_generate_skin_option_$option"));
if (function_exists("thesis_generate_skin_option_$option"))
call_user_func("thesis_generate_skin_option_$option");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment