$value ) { if ( strpos( $key, 'vamtam_theme' ) !== false ) { $key = str_replace( 'vamtam_theme[', '', rtrim( $key, ']' ) ); $vamtam_theme[ $key ] = $value; } } } } } add_action( 'customize_render_partials_before', 'vamtam_customizer_setup_partial_options' ); function vamtam_customize_register( WP_Customize_Manager $wp_customize ) { include VAMTAM_DIR . 'customizer/preview/general.php'; include VAMTAM_DIR . 'customizer/preview/layout.php'; include VAMTAM_DIR . 'customizer/preview/styles.php'; } add_action( 'customize_register', 'vamtam_customize_register', 20 );