Automattic\WooCommerce\Blocks\BlockTypes
ProductFilterAttribute::delete_default_attribute_id_transient()
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() 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' ); } }