ControlledChaos
5/7/2015 - 8:59 AM

Redirect to Theme Customizer after Theme Activation

Redirect to Theme Customizer after Theme Activation

<?php

function ccd_theme_activation() {	
	if ( is_admin() && isset( $_GET['activated'] ) && 'themes.php' == $GLOBALS['pagenow'] ) {
		wp_redirect( admin_url( 'customize.php' ) );
		exit;
	}
}
add_action( 'after_setup_theme', 'ccd_theme_activation' );

?>

Redirect to Theme Customizer after Theme Activation

WordPress Snippet