ASTRA_Ext_WooCommerce_Markup::add_to_cart_args( array $defaults, array $product )
Add to cart button arguments
Description
Parameters
- $defaults
-
(array) (Required) Default argument array.
- $product
-
(array) (Required) Add button style class.
Return
(array;)
Source
File: addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php
public function add_to_cart_args( $defaults, $product ) { $defaults['class'] = $defaults['class'] . ' ' . astra_get_option( 'shop-button-style' ); return $defaults; }
Expand full source code Collapse full source code View on Trac