<?php
/**
* Recommended plugins options
*
* @package BlogWP WordPress Theme
* @copyright Copyright (C) 2025 ThemesDNA
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
* @author ThemesDNA <themesdna@gmail.com>
*/

function blogwp_recomm_plugin_options($wp_customize) {

    // Customizer Section: Recommended Plugins
    $wp_customize->add_section( 'sc_recommended_plugins', array( 'title' => esc_html__( 'Recommended Plugins', 'blogwp' ), 'panel' => 'blogwp_main_options_panel', 'priority' => 880 ));

    $wp_customize->add_setting( 'blogwp_options[recommended_plugins]', array( 'type' => 'option', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'blogwp_sanitize_recommended_plugins' ) );

    $wp_customize->add_control( new BlogWP_Customize_Recommended_Plugins( $wp_customize, 'blogwp_recommended_plugins_control', array( 'label' => esc_html__( 'Recommended Plugins', 'blogwp' ), 'section' => 'sc_recommended_plugins', 'settings' => 'blogwp_options[recommended_plugins]', 'type' => 'tdna-recommended-wpplugins' ) ) );

}