WC_Shop_Customizer::add_sections
Add settings to the customizer.
Method of the class: WC_Shop_Customizer{}
No Hooks.
Returns
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() WC Shop Customizer::add sections code WC 10.5.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 );
}