add_section( 'superb_marketplace_unique', array( 'title' => __('Superb Marketplace','superb-marketplace'), 'description' => __('These are child theme only features','superb-marketplace'), 'priority' => 1, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'sm_show_post_date', array( 'default' => 0, 'sanitize_callback' => 'superb_marketplace_sanitize_checkbox', ) ); $wp_customize->add_control( 'sm_show_post_date', array( 'label' => __( 'Show post meta', 'superb-marketplace' ), 'section' => 'superb_marketplace_unique', 'priority' => 1, 'settings' => 'sm_show_post_date', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'sm_show_comments', array( 'default' => 0, 'sanitize_callback' => 'superb_marketplace_sanitize_checkbox', ) ); $wp_customize->add_control( 'sm_show_comments', array( 'label' => __( 'Show Comments On Woocommerce Product Pages', 'superb-marketplace' ), 'section' => 'superb_marketplace_unique', 'priority' => 1, 'settings' => 'sm_show_comments', 'type' => 'checkbox', ) ); } add_action( 'customize_register', 'superb_marketplace_customize_register' ); if(! function_exists('superb_marketplace_customize_register_output' ) ): function superb_marketplace_customize_register_output(){ ?> 'Dokan Lite', 'slug' => 'dokan-lite', ), ); $config = array( 'id' => 'superb-marketplace', // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => '', // Default absolute path to bundled plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa( $plugins, $config ); }