/** * Initializing action. If you are creating a child theme and you want to override some of Suffusion's actions/filters etc you * can add your own action to the hook "after_setup_theme", with a priority > 10 if you want your actions to be executed after * Suffusion and with priority < 10 if you want your actions executed before. * * @return void */ function suffusion_theme_setup() { global $pagenow, $suffusion_unified_options, $suffusion; suffusion_add_theme_supports(); suffusion_include_files(); suffusion_setup_standard_actions_and_filters(); suffusion_setup_custom_actions_and_filters(); suffusion_setup_skin(); foreach ($suffusion_unified_options as $option => $value) { global ${$option}; ${$option} = $value; } $suffusion = new Suffusion(); $suffusion->init(); if (is_admin() && isset($_GET['activated']) && ($pagenow = 'themes.php')) { header('Location: ' . admin_url() . 'themes.php?page=suffusion-options-manager&now-active=true'); } }