WC_Shop_Customizer::add_sections()
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 Shop Customizer::add sections WC 8.1.1
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 ); }