Automattic\WooCommerce\Blocks\BlockTypes

ProductFilterAttribute::delete_default_attribute_id_transientpublicWC 1.0

Delete the default attribute id transient when the attribute taxonomies are deleted.

Method of the class: ProductFilterAttribute{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ProductFilterAttribute = new ProductFilterAttribute();
$ProductFilterAttribute->delete_default_attribute_id_transient( $transient );
$transient(string) (required)
The transient name.

ProductFilterAttribute::delete_default_attribute_id_transient() code WC 10.4.3

public function delete_default_attribute_id_transient( $transient ) {
	if ( 'wc_attribute_taxonomies' === $transient ) {
		delete_transient( 'wc_block_product_filter_attribute_default_attribute' );
	}
}