'theme_mod', * 'capability' => 'edit_theme_options' * 'default' => 0, * 'transport' => 'refresh', * 'sanitize_callback' => 'some_function' */ /*=============================================== = Logo Section = ===============================================*/ $rws_business_options = 'rws_business_options'; $wp_customize->add_setting( $rws_business_options.'[top_header_logo]', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'default' => $rws_business_options_defaults['top_header_logo'], 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( $rws_business_options.'[top_header_logo]', array( 'label' => __('Select Logo Option', 'business-hub' ), 'section' => 'logo_section', 'setting' => $rws_business_options.'[top_header_logo]', 'type' => 'select', 'choices' => array( 'image' => 'Upload Image', 'tagline' => 'Tagline', 'custom' => 'Custom Text', 'title' => 'Site Title', 'title-tagline' => 'Title And Tagline' ), 'priority' => 2, ) ); $wp_customize->add_setting( $rws_business_options.'[logo_custom_text]', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'default' => $rws_business_options_defaults['logo_custom_text'], 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( $rws_business_options.'[logo_custom_text]', array( 'label' => __('Custom Logo Text', 'business-hub' ), 'section' => 'logo_section', 'setting' => $rws_business_options.'[logo_custom_text]', 'type' => 'text', 'active_callback' => 'rws_business_header_logo', 'priority' => 2, ) ); $wp_customize->add_setting( $rws_business_options.'[logo_custom_text_color]', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'default' => $rws_business_options_defaults['logo_custom_text_color'], 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize,$rws_business_options.'[logo_custom_text_color]', array( 'label' => __('Custom Logo Text Color', 'business-hub' ), 'section' => 'logo_section', 'setting' => $rws_business_options.'[logo_custom_text_color]', 'active_callback' => 'rws_business_header_logo', 'priority' => 2, ) ) ); $wp_customize->add_setting( $rws_business_options.'[logo_image]', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'default' => $rws_business_options_defaults['logo_image'], 'transport' => 'refresh', 'sanitize_callback' => 'rws_business_sanitize_image' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, $rws_business_options.'[logo_image]', array( 'label' => __( 'Upload Logo', 'business-hub' ), 'section' => 'logo_section', 'setting' => $rws_business_options.'[logo_image]', 'description' => __( 'Upload * * size image', 'business-hub' ), 'priority' => 2, 'type' => 'image', 'active_callback' => 'rws_business_header_logo', ) ) ); /*===== End of Logo Section ======*/