Astra_Woocommerce::option_woocommerce_cart_redirect_after_add( string $value )
Enable ajax add to cart redirect.
Description
Parameters
- $value
-
(string) (Required) cart redirect after add value.
Return
(string) yes | no enable / disable cart redirect after add.
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function option_woocommerce_cart_redirect_after_add( $value ) { $astra_shop_add_to_cart = astra_get_option( 'shop-add-to-cart-action' ); if ( $astra_shop_add_to_cart && 'default' !== $astra_shop_add_to_cart ) { return 'no'; } return $value; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |