*/ function boldwp_footer_options($wp_customize) { $wp_customize->add_section( 'boldwp_section_footer', array( 'title' => esc_html__( 'Footer Options', 'boldwp' ), 'panel' => 'boldwp_main_options_panel', 'priority' => 280 ) ); $wp_customize->add_setting( 'boldwp_options[footer_text]', array( 'default' => '', 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boldwp_sanitize_html', ) ); $wp_customize->add_control( 'boldwp_footer_text_control', array( 'label' => esc_html__( 'Footer copyright notice', 'boldwp' ), 'section' => 'boldwp_section_footer', 'settings' => 'boldwp_options[footer_text]', 'type' => 'text', ) ); $wp_customize->add_setting( 'boldwp_options[hide_footer_widgets]', array( 'default' => false, 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boldwp_sanitize_checkbox', ) ); $wp_customize->add_control( 'boldwp_hide_footer_widgets_control', array( 'label' => esc_html__( 'Hide Footer Widgets', 'boldwp' ), 'section' => 'boldwp_section_footer', 'settings' => 'boldwp_options[hide_footer_widgets]', 'type' => 'checkbox', ) ); $wp_customize->add_section( 'boldwp_section_other_options', array( 'title' => esc_html__( 'Other Options', 'boldwp' ), 'panel' => 'boldwp_main_options_panel', 'priority' => 600 ) ); $wp_customize->add_setting( 'boldwp_options[enable_widgets_block_editor]', array( 'default' => false, 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boldwp_sanitize_checkbox', ) ); $wp_customize->add_control( 'boldwp_enable_widgets_block_editor_control', array( 'label' => esc_html__( 'Enable Gutenberg Widget Block Editor', 'boldwp' ), 'section' => 'boldwp_section_other_options', 'settings' => 'boldwp_options[enable_widgets_block_editor]', 'type' => 'checkbox', ) ); }