add_section( 'topbar_section', array( 'title' => 'topbar', 'priority' => 211, )); $wp_customize->add_setting( 'checkbox_sample', array( 'default' => false, 'sanitize_callback' => 'theme_slug_sanitize_checkbox', )); $wp_customize->add_control( 'checkbox_sample', array( 'label' => 'topbar_enable', 'section' => 'topbar_section', 'priority' => 1, 'type' => 'checkbox', )); // tell phone $wp_customize->add_setting( 'tell', array( 'type' => 'option', 'sanitize_callback' => 'wp_filter_post_kses', )); $wp_customize->add_control( 'tell', array( 'settings' => 'tell', 'label' => 'Phone number', 'section' => 'topbar_section', 'type' => 'text', )); // contact URL $wp_customize->add_setting( 'contact', array( 'type' => 'option', 'sanitize_callback' => 'wp_filter_post_kses', )); $wp_customize->add_control( 'contact', array( 'settings' => 'contact', 'label' => 'Conract URL', 'section' => 'topbar_section', 'type' => 'text', )); // access $wp_customize->add_setting('access', array( 'type' => 'option', 'sanitize_callback' => 'wp_filter_post_kses', )); $wp_customize->add_control( 'access', array( 'settings' => 'access', 'label' => 'Access', 'section' => 'topbar_section', 'type' => 'text', )); } add_action( 'customize_register', 'theme_top_bar' );