add_section( 'blog_point_posts_meta_options', array( 'title' => esc_html__( 'Post Meta Options', 'blog-point' ), 'panel' => 'blog_point_theme_options_panel', ) ); // Enable post category setting. $wp_customize->add_setting( 'blog_point_enable_category', array( 'default' => true, 'sanitize_callback' => 'blog_point_sanitize_checkbox', ) ); $wp_customize->add_control( new Blog_Point_Toggle_Checkbox_Custom_control( $wp_customize, 'blog_point_enable_category', array( 'label' => esc_html__( 'Enable Category', 'blog-point' ), 'settings' => 'blog_point_enable_category', 'section' => 'blog_point_posts_meta_options', 'type' => 'checkbox', ) ) ); // Enable post author setting. $wp_customize->add_setting( 'blog_point_enable_author', array( 'default' => true, 'sanitize_callback' => 'blog_point_sanitize_checkbox', ) ); $wp_customize->add_control( new Blog_Point_Toggle_Checkbox_Custom_control( $wp_customize, 'blog_point_enable_author', array( 'label' => esc_html__( 'Enable Author', 'blog-point' ), 'settings' => 'blog_point_enable_author', 'section' => 'blog_point_posts_meta_options', 'type' => 'checkbox', ) ) ); // Enable post date setting. $wp_customize->add_setting( 'blog_point_enable_date', array( 'default' => true, 'sanitize_callback' => 'blog_point_sanitize_checkbox', ) ); $wp_customize->add_control( new Blog_Point_Toggle_Checkbox_Custom_control( $wp_customize, 'blog_point_enable_date', array( 'label' => esc_html__( 'Enable Date', 'blog-point' ), 'settings' => 'blog_point_enable_date', 'section' => 'blog_point_posts_meta_options', 'type' => 'checkbox', ) ) ); // Enable post tag setting. $wp_customize->add_setting( 'blog_point_enable_tag', array( 'default' => true, 'sanitize_callback' => 'blog_point_sanitize_checkbox', ) ); $wp_customize->add_control( new Blog_Point_Toggle_Checkbox_Custom_control( $wp_customize, 'blog_point_enable_tag', array( 'label' => esc_html__( 'Enable Post Tag', 'blog-point' ), 'settings' => 'blog_point_enable_tag', 'section' => 'blog_point_posts_meta_options', 'type' => 'checkbox', ) ) );