wc_ajax_add_to_cart_variable_add_section

The Woocommerce Add to cart Ajax for variable products wc ajax add to cart variable section function.

Description

wc_ajax_add_to_cart_variable_add_section( $sections ); 

Parameters (1)

0. $sections
The sections.

Usage

  1. if ( !function_exists( 'wc_ajax_add_to_cart_variable_add_section' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-add-to-cart-ajax-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php'; 
  3.  
  4. // The sections. 
  5. $sections = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_ajax_add_to_cart_variable_add_section($sections); 
  9.  

Defined (1)

The function is defined in the following location(s).

/woocommerce-ajax-add-to-cart-variable-products.php  
  1. function wc_ajax_add_to_cart_variable_add_section( $sections ) { 
  2.  
  3. $sections['wc_ajax_add_to_cart_variable'] = __( 'WC Ajax for Variable Products', 'text-domain' ); 
  4. return $sections; 
  5.