add_setting('asycom_global_bloglist_thumbnail', array( 'default' => 'cover', 'transport' => 'postMessage', 'sanitize_callback' => 'wp_filter_nohtml_kses' ) ); $wp_customize->add_control('asycom_global_bloglist_thumbnail', array( 'type' => 'radio', 'section' => 'asycom_general_options', 'label' => esc_html__('Blog list thumbnail style','asycom'), 'description' => esc_html__('Select Blog list thumbnail style','asycom'), 'choices' => array( 'cover' => esc_html__('Cover','asycom'), 'contain' => esc_html__('Contain','asycom'), ), )); /*Disable blog list Excerpt*/ $wp_customize->add_setting('asycom_blog_hide_excerpt', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', )); $wp_customize->add_control('asycom_blog_hide_excerpt', array( 'type' => 'checkbox', 'section' => 'asycom_general_options', // Add a default or your own section 'label' => esc_html__('Hide blog item Excerpt?','asycom'), 'description' => esc_html__('By enabling this option the post Eecerpt will be disappeared','asycom') )); /*Disable blog list cats*/ $wp_customize->add_setting('asycom_blog_hide_cats', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', )); $wp_customize->add_control('asycom_blog_hide_cats', array( 'type' => 'checkbox', 'section' => 'asycom_general_options', // Add a default or your own section 'label' => esc_html__('Hide blog item cats?','asycom'), 'description' => esc_html__('By enabling this option the post cats will be disappeared','asycom') )); /*Disable blog list Tags*/ $wp_customize->add_setting('asycom_blog_hide_tags', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', )); $wp_customize->add_control('asycom_blog_hide_tags', array( 'type' => 'checkbox', 'section' => 'asycom_general_options', // Add a default or your own section 'label' => esc_html__('Hide blog item tags?','asycom'), 'description' => esc_html__('By enabling this option the post tags will be disappeared','asycom') ));