$box ) { foreach ( $box as $key => $value ) { $input_decoded[ $boxk ][ $key ] = $value; } } return json_encode( $input_decoded ); } return $input; } /** * Register panels for Customizer. * * @since Allo 1.0 */ function allo_customize_register( $wp_customize ) { $wp_customize->add_panel( 'allo_typography_settings', array( 'priority' => 25, 'title' => esc_html__( 'Typography Settings', 'allo' ), ) ); } add_action( 'customize_register', 'allo_customize_register' ); /** * Register JS control types. * * @since 1.0 * @access public * @return void */ function allo_register_control_types( $wp_customize ) { get_template_part('customizer/customizer-range-value/class/class-allo-customizer-range-value-control'); get_template_part('customizer/customizer-select-multiple/class/class-allo-select-multiple'); get_template_part('customizer/customizer-heading/class/class-allo-customizer-heading'); get_template_part('customizer/customizer-hiding-section/class/class-allo-hiding-section'); // Register JS control types. $wp_customize->register_control_type( 'Allo_Select_Multiple' ); $wp_customize->register_control_type( 'Allo_Customizer_Range_Value_Control' ); $wp_customize->register_control_type( 'Allo_Customizer_Heading' ); $wp_customize->register_control_type( 'Allo_Hiding_Section' ); } add_action( 'customize_register', 'allo_register_control_types', 0 );