add_section( 'photographers_corner_submenu', array( 'title' => __('Photographers Corner','photographers-corner'), 'priority' => 1, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'pc_hide_post_date', array( 'default' => 0, 'sanitize_callback' => 'photographers_corner_sanitize_checkbox', ) ); $wp_customize->add_control( 'pc_hide_post_date', array( 'label' => __( 'Hide post date', 'photographers-corner' ), 'section' => 'photographers_corner_submenu', 'priority' => 1, 'settings' => 'pc_hide_post_date', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'pc_hide_post_comments', array( 'default' => 0, 'sanitize_callback' => 'photographers_corner_sanitize_checkbox', ) ); $wp_customize->add_control( 'pc_hide_post_comments', array( 'label' => __( 'Hide post comments', 'photographers-corner' ), 'section' => 'photographers_corner_submenu', 'priority' => 1, 'settings' => 'pc_hide_post_comments', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'pc_hide_navigation', array( 'default' => 0, 'sanitize_callback' => 'photographers_corner_sanitize_checkbox', ) ); $wp_customize->add_control( 'pc_hide_navigation', array( 'label' => __( 'Hide top navigation', 'photographers-corner' ), 'section' => 'photographers_corner_submenu', 'priority' => 1, 'settings' => 'pc_hide_navigation', 'type' => 'checkbox', ) ); } add_action( 'customize_register', 'photographers_corner_customize_register' ); if(! function_exists('photographers_corner_customizer_css' ) ): function photographers_corner_customizer_css(){ ?>