WC_Shop_Customizer::add_sections()publicWC 1.0

Add settings to the customizer.

Method of the class: WC_Shop_Customizer{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Shop_Customizer = new WC_Shop_Customizer();
$WC_Shop_Customizer->add_sections( $wp_customize );
$wp_customize(WP_Customize_Manager) (required)
Theme Customizer object.

WC_Shop_Customizer::add_sections() code WC 8.7.0

public function add_sections( $wp_customize ) {
	$wp_customize->add_panel(
		'woocommerce',
		array(
			'priority'       => 200,
			'capability'     => 'manage_woocommerce',
			'theme_supports' => '',
			'title'          => __( 'WooCommerce', 'woocommerce' ),
		)
	);

	$this->add_store_notice_section( $wp_customize );
	$this->add_product_catalog_section( $wp_customize );
	$this->add_product_images_section( $wp_customize );
	$this->add_checkout_section( $wp_customize );
}