ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

woocommerce-ready.php (707B)


      1 <?php
      2 
      3 
      4 add_action('customize_register', function ($wp_customize) {
      5 
      6     $panel = 'materialis_woocommerce_panel';
      7 
      8     $wp_customize->add_section(
      9         $panel,
     10         array(
     11             'capability' => 'edit_theme_options',
     12             'title'      => esc_html__('WooCommerce Options', 'materialis'),
     13         )
     14     );
     15 
     16 
     17     materialis_add_kirki_field(array(
     18         'type'     => 'ope-info',
     19         'label'    => materialis_wp_kses_post('Materialis theme is <b>WooCommerce ready</b>. After you install the <b>WooCommerce</b> plugin you will be able to customize the shop inside this section.', 'materialis'),
     20         'section'  => $panel,
     21         'settings' => "woocommerce_ready",
     22     ));
     23 
     24 }, 10, 1);