2 entries in
trol( $wp_customize, 'blog_archive_options_heading', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Filtering & Sorting', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ) ); // Blog -> Archive Pages -> Filtering & Sorting - Show filters. $wp_customize->add_setting( 'blog_archive_options_filter', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_archive_options_filter', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Show filters.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); $wp_customize->selective_refresh->add_partial( 'blog_archive_options_filter', array( 'selector' => 'body:not(.search) .main-posts.posts-type-post .posts-filters', 'render_callback' => 'tripp_customizer_get_archive_options', 'container_inclusive' => true, ) ); // Blog -> Archive Pages -> Filtering & Sorting - Show sort by options. $wp_customize->add_setting( 'blog_archive_options_sortby', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_archive_options_sortby', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Show sort by options.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); $wp_customize->selective_refresh->add_partial( 'blog_archive_options_sortby', array( 'selector' => 'body:not(.search) .main-posts.posts-type-post .posts-filters', 'render_callback' => 'tripp_customizer_get_archive_options', 'container_inclusive' => true, ) ); // Blog -> Archive Pages -> - Layout. $wp_customize->add_setting( 'blog_archive_layout', array( 'default' => 'list', 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_select', ) ); $wp_customize->add_control( 'blog_archive_layout', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Layout', 'tripp' ), 'description' => esc_html__( 'Choose blog posts layout.', 'tripp' ), 'type' => 'select', 'choices' => tripp_customizer_posts_layout_options(), 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); $wp_customize->selective_refresh->add_partial( 'blog_archive_layout', array( 'selector' => 'body:not(.search) .main-posts.posts-type-post', 'render_callback' => 'tripp_customizer_get_posts', 'container_inclusive' => true, ) ); // Blog -> Archive Pages -> Pagination. $wp_customize->add_setting( 'blog_archive_pagination', array( 'default' => 'numbered', 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_select', ) ); $wp_customize->add_control( 'blog_archive_pagination', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Pagination', 'tripp' ), 'description' => esc_html__( 'Choose posts pagination type.', 'tripp' ), 'type' => 'select', 'choices' => tripp_customizer_posts_pagination_options(), 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); $wp_customize->selective_refresh->add_partial( 'blog_archive_pagination', array( 'selector' => 'body:not(.search) .main-posts.posts-type-post .pagination', 'render_callback' => 'tripp_customizer_archive_pagination', 'container_inclusive' => true, ) ); // Blog -> Archive Pages -> Post Metadata. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_archive_meta_heading', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Post Metadata', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ) ); // Blog -> Archive Pages -> Author. $wp_customize->add_setting( 'blog_archive_author', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_archive_author', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Author', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_archive_author', array( 'selector' => '.main-posts.posts-type-post .post .author', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Archive Pages -> Date and category. $wp_customize->add_setting( 'blog_archive_meta', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_archive_meta', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Date and category.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_archive_meta', array( 'selector' => '.main-posts.posts-type-post .post .entry-meta', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Archive Pages -> Destination. $wp_customize->add_setting( 'blog_archive_destination', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_archive_destination', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Destination.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_archive_destination', array( 'selector' => '.main-posts.posts-type-post .post .meta-destination', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Archive Pages -> Post Buttons. $wp_customize->add_setting( 'blog_archive_buttons', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_archive_buttons', array( 'section' => 'blog_archive_section', 'label' => esc_html__( 'Comments, Likes and Share buttons.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_archive_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_archive_buttons', array( 'selector' => '.main-posts.posts-type-post .post .entry-buttons', 'render_callback' => '', 'fallback_refresh' => false, ) ); /** * Blog -> Search Page. */ $wp_customize->add_section( 'blog_search_section', array( 'panel' => 'blog_panel', 'title' => esc_html__( 'Search Page', 'tripp' ), ) ); // Blog -> Search Page -> Filtering & Sorting. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_search_options_heading', array( 'section' => 'blog_search_section', 'label' => esc_html__( 'Filtering & Sorting', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_search_options', ) ) ); // Blog -> Search Page -> Filtering & Sorting - Show filters. $wp_customize->add_setting( 'blog_search_options_filter', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_search_options_filter', array( 'section' => 'blog_search_section', 'label' => esc_html__( 'Show filters.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_search_options', ) ); $wp_customize->selective_refresh->add_partial( 'blog_search_options_filter', array( 'selector' => '.search .main-posts .posts-filters', 'render_callback' => 'tripp_customizer_get_search_options', 'container_inclusive' => true, ) ); // Blog -> Search Page -> Filtering & Sorting - Show sort by options. $wp_customize->add_setting( 'blog_search_options_sortby', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_search_options_sortby', array( 'section' => 'blog_search_section', 'label' => esc_html__( 'Show sort by options.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_search_options', ) ); $wp_customize->selective_refresh->add_partial( 'blog_search_options_sortby', array( 'selector' => '.search .main-posts .posts-filters', 'render_callback' => 'tripp_customizer_get_search_options', 'container_inclusive' => true, ) ); // Blog -> Search Page -> Pagination. $wp_customize->add_setting( 'blog_search_pagination', array( 'default' => 'numbered', 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_select', ) ); $wp_customize->add_control( 'blog_search_pagination', array( 'section' => 'blog_search_section', 'label' => esc_html__( 'Pagination', 'tripp' ), 'description' => esc_html__( 'Choose posts pagination type.', 'tripp' ), 'type' => 'select', 'choices' => tripp_customizer_posts_pagination_options(), 'active_callback' => 'tripp_customizer_is_view_with_search_options', ) ); $wp_customize->selective_refresh->add_partial( 'blog_search_pagination', array( 'selector' => '.search .main-posts .pagination', 'render_callback' => 'tripp_customizer_search_pagination', 'container_inclusive' => true, ) ); /** * Blog -> Single Post */ $wp_customize->add_section( 'blog_single_post_section', array( 'panel' => 'blog_panel', 'title' => esc_html__( 'Single Post', 'tripp' ), ) ); // Blog -> Single Post -> Layout. $wp_customize->add_setting( 'blog_single_post_layout', array( 'default' => '1', 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_select', ) ); $wp_customize->add_control( new Tripp_Customize_Image_Select_Control( $wp_customize, 'blog_single_post_layout', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Layout', 'tripp' ), 'choices' => array( '1' => array( 'text' => esc_html__( 'Layout #1', 'tripp' ), 'image' => '', ), '2' => array( 'text' => esc_html__( 'Layout #2', 'tripp' ), 'image' => '', ), '3' => array( 'text' => esc_html__( 'Layout #3', 'tripp' ), 'image' => '', ), '4' => array( 'text' => esc_html__( 'Layout #4', 'tripp' ), 'image' => '', ), '5' => array( 'text' => esc_html__( 'Layout #5', 'tripp' ), 'image' => '', ), ), 'is_url' => false, 'description' => esc_html__( 'Default layout for the single post.', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ) ); // Blog -> Single Post -> Breadcrumb navigation. $wp_customize->add_setting( 'blog_single_post_breadcrumb', array( 'default' => '', 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_select', ) ); $wp_customize->add_control( 'blog_single_post_breadcrumb', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Breadcrumb navigation', 'tripp' ), 'type' => 'select', 'choices' => array( '' => esc_html__( 'Disabled', 'tripp' ), 'destination' => esc_html__( 'Destination based', 'tripp' ), 'category' => esc_html__( 'Category based', 'tripp' ), ), 'description' => esc_html__( 'A type of breadcrumb navigation to display on single post.', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_breadcrumb', array( 'selector' => '.single-post .single-entry .tripp-breadcrumb', 'render_callback' => 'tripp_customizer_get_breadcrumb', 'container_inclusive' => true, ) ); // Blog -> Single Post -> Post Metadata. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_single_post_meta_heading', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post Metadata', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ) ); // Blog -> Single Post -> Destination. $wp_customize->add_setting( 'blog_single_post_destination', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_destination', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Destination.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_destination', array( 'selector' => '.single-post .single-entry .meta-destination', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Post category. $wp_customize->add_setting( 'blog_single_post_category', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_category', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post category.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_category', array( 'selector' => '.single-post .single-entry .meta-category', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Publication date. $wp_customize->add_setting( 'blog_single_post_date', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_date', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Publication date.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Blog -> Single Post -> Modification date. $wp_customize->add_setting( 'blog_single_post_update', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_update', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Modification date.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Blog -> Single Post -> Post tags. $wp_customize->add_setting( 'blog_single_post_tags', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_tags', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post tags.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_tags', array( 'selector' => '.single-post .single-entry .tags-links', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Post Buttons. $wp_customize->add_setting( 'blog_single_post_buttons', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_buttons', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Comments, Likes and Share buttons.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_buttons', array( 'selector' => '.single-post .single-entry-footer .entry-buttons', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Author Information. $wp_customize->add_setting( 'blog_single_post_author', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_author', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Author information.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_author', array( 'selector' => '.single-post .single-entry-footer .post-author', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Related Posts. $wp_customize->add_setting( 'blog_single_post_related', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_related', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Related Posts.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_related', array( 'selector' => '.single-post .related-posts', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Single Post -> Post Navigation. $wp_customize->add_setting( 'blog_single_post_navigation', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_single_post_navigation', array( 'section' => 'blog_single_post_section', 'label' => esc_html__( 'Post Navigation.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_single_post_options', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_single_post_navigation', array( 'selector' => '.single-post .post-navigation', 'render_callback' => '', 'fallback_refresh' => false, ) ); if ( function_exists( 'flextension_quick_view_content' ) ) { /** * Blog -> Quick View. */ $wp_customize->add_section( 'blog_quick_view_section', array( 'panel' => 'blog_panel', 'title' => esc_html__( 'Quick View', 'tripp' ), ) ); // Blog -> Quick View -> Quick View Button. $wp_customize->add_setting( 'blog_quick_view_button', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_button', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Display a Quick View button.', 'tripp' ), 'type' => 'checkbox', ) ); // Blog -> Quick View -> Post links. $wp_customize->add_setting( 'blog_quick_view_link', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_link', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Open Quick View when clicking on a post link.', 'tripp' ), 'type' => 'checkbox', ) ); // Blog -> Quick View -> Content. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_quick_view_content_heading', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Post content', 'tripp' ), ) ) ); // Blog -> Quick View -> Show full content. $wp_customize->add_setting( 'blog_quick_view_full', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_full', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Show full content.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_full', array( 'selector' => '.quick-view-content .entry-content', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Post Metadata. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'blog_quick_view_meta_heading', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Post Metadata', 'tripp' ), ) ) ); // Blog -> Quick View -> Post tags. $wp_customize->add_setting( 'blog_quick_view_tags', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_tags', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Post tags.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_tags', array( 'selector' => '.quick-view-content .tags-links', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Post Buttons. $wp_customize->add_setting( 'blog_quick_view_buttons', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_buttons', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Comments, Likes and Share buttons.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_buttons', array( 'selector' => '.quick-view-content .entry-buttons', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Author Information. $wp_customize->add_setting( 'blog_quick_view_author', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_author', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Author information.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_author', array( 'selector' => '.quick-view-content .post-author', 'render_callback' => '', 'fallback_refresh' => false, ) ); // Blog -> Quick View -> Related Posts. $wp_customize->add_setting( 'blog_quick_view_related', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'blog_quick_view_related', array( 'section' => 'blog_quick_view_section', 'label' => esc_html__( 'Related posts.', 'tripp' ), 'type' => 'checkbox', ) ); // Show an Edit icon to easily access the settings panel. $wp_customize->selective_refresh->add_partial( 'blog_quick_view_related', array( 'selector' => '.quick-view-content .related-posts', 'render_callback' => '', 'fallback_refresh' => false, ) ); } /** * Blog -> Password Protected Post */ $wp_customize->add_section( 'blog_protected_post_section', array( 'panel' => 'blog_panel', 'title' => esc_html__( 'Password Protected Post', 'tripp' ), ) ); // Blog -> Password Protected Post -> Visibility Settings. $wp_customize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'protected_post_heading', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Visibility Settings', 'tripp' ), 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ) ); // Blog -> Password Protected Post -> Show post thumbnail. $wp_customize->add_setting( 'protected_post_thumbnail', array( 'default' => false, 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'protected_post_thumbnail', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Show post thumbnail.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ); // Blog -> Password Protected Post -> Show post excerpt. $wp_customize->add_setting( 'protected_post_excerpt', array( 'default' => false, 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'protected_post_excerpt', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Show post excerpt.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ); // Blog -> Password Protected Post -> Show post metadata. $wp_customize->add_setting( 'protected_post_metadata', array( 'default' => true, 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'protected_post_metadata', array( 'section' => 'blog_protected_post_section', 'label' => esc_html__( 'Show post metadata.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_view_with_protected_post_options', ) ); } add_action( 'customize_register', 'tripp_customizer_register_blog_settings', 20 );