astra_cart_color_default_icon_old_header()
Support cart color setting to default cart icon, till now with other cart icons have this color compatibility but default one don’t have this.
Description
This case is only for old header layout.
Return
(boolean) false if it is an existing user, true if not.
Source
File: inc/compatibility/woocommerce/woocommerce-common-functions.php
function astra_cart_color_default_icon_old_header() { $astra_settings = get_option( ASTRA_THEME_SETTINGS ); $astra_settings['can-reflect-cart-color-in-old-header'] = isset( $astra_settings['can-reflect-cart-color-in-old-header'] ) ? false : true; return apply_filters( 'astra_support_default_cart_color_in_old_header', $astra_settings['can-reflect-cart-color-in-old-header'] ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.9.2 | Introduced. |