Automattic\WooCommerce\Blocks\BlockTypes

ProductFilterAttribute::delete_default_attribute_id_transient()publicWC 1.0

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

Method of the class: ProductFilterAttribute{}

No Hooks.

Return

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 9.4.2

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