Automattic\WooCommerce\Blocks\BlockTypes
ProductFilterAttribute::delete_default_attribute_id_transient
Delete the default attribute id transient when the attribute taxonomies are deleted.
Метод класса: ProductFilterAttribute{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProductFilterAttribute = new ProductFilterAttribute(); $ProductFilterAttribute->delete_default_attribute_id_transient( $transient );
- $transient(строка) (обязательный)
- The transient name.
Код ProductFilterAttribute::delete_default_attribute_id_transient() ProductFilterAttribute::delete default attribute id transient WC 11.0.0
public function delete_default_attribute_id_transient( $transient ) {
if ( 'wc_attribute_taxonomies' === $transient ) {
delete_transient( 'wc_block_product_filter_attribute_default_attribute' );
}
}