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
if ( !function_exists( 'wc_ajax_add_to_cart_variable_add_section' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-add-to-cart-ajax-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php'; } // The sections. $sections = null; // NOTICE! Understand what this does before running. $result = wc_ajax_add_to_cart_variable_add_section($sections);
Defined (1)
The function is defined in the following location(s).
- /woocommerce-ajax-add-to-cart-variable-products.php
- function wc_ajax_add_to_cart_variable_add_section( $sections ) {
- $sections['wc_ajax_add_to_cart_variable'] = __( 'WC Ajax for Variable Products', 'text-domain' );
- return $sections;
- }