WC_Cache_Helper::invalidate_attribute_count( array $attribute_keys )

Used to clear layered nav counts based on passed attribute names.


Description Description


Parameters Parameters

$attribute_keys

(Required) Attribute keys.


Top ↑

Source Source

File: includes/class-wc-cache-helper.php

	public static function invalidate_attribute_count( $attribute_keys ) {
		if ( $attribute_keys ) {
			foreach ( $attribute_keys as $attribute_key ) {
				self::queue_delete_transient( 'wc_layered_nav_counts_' . $attribute_key );
			}
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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