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
}

Changelog

Changelog
Version Description
3.9.2 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.