$val ) { $input[$val] = wp_filter_nohtml_kses( $input[$val] ); } /* Return the array of theme settings. */ return $input; } /* Function for displaying the meta box. */ function bearded_social_meta_box() { ?> $val ) { ?>

add_section( 'bearded_logo_section' , array( 'title' => __( 'Logo', 'bearded' ), 'priority' => 30, 'description' => 'Upload a logo to replace the default site name and description in the header', ) ); $wp_customize->add_setting( 'bearded_logo' ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bearded_logo', array( 'label' => __( 'Logo', 'bearded' ), 'section' => 'bearded_logo_section', 'settings' => 'bearded_logo', ) ) ); } add_action('customize_register', 'bearded_theme_customizer'); ?>