add_section( 'aspire_color', array( 'title' => __( 'Button hover color', 'aspire-lite' ), 'priority' => 35 ) ); $wp_customize->add_setting( 'button_hover_bg_color', array( 'default' => '#000', 'type' => 'theme_mod', 'sanitize_callback' => 'esc_html' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'button_hover_bg_color', array( 'label' => __( 'Background Color', 'aspire-lite' ), 'section' => 'aspire_color', 'settings' => 'button_hover_bg_color', 'priority' => 2 ) ) ); $wp_customize->add_setting( 'button_hover_text_color', array( 'default' => '#fff', 'type' => 'theme_mod', 'sanitize_callback' => 'esc_html' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'button_hover_text_color', array( 'label' => __( 'Text Color', 'aspire-lite' ), 'section' => 'aspire_color', 'settings' => 'button_hover_text_color', 'priority' => 2 ) ) ); } add_action( 'customize_register', 'aspire_customize_register' ); function aspire_customize() { global $button_hover_color; ?>