WC_Shop_Customizer::add_sections()publicWC 1.0

Add settings to the customizer.

Метод класса: WC_Shop_Customizer{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Shop_Customizer = new WC_Shop_Customizer();
$WC_Shop_Customizer->add_sections( $wp_customize );
$wp_customize(WP_Customize_Manager) (обязательный)
Theme Customizer object.

Код WC_Shop_Customizer::add_sections() 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 );
}