WooCommerce Code Reference

MiniCartUtils
in package

Utility methods used for the Mini Cart block.

Table of Contents

migrate_attributes_to_color_panel()  : array<string|int, mixed>
Migrate attributes to color panel component format.

Methods

migrate_attributes_to_color_panel()

Migrate attributes to color panel component format.

public static migrate_attributes_to_color_panel(array<string|int, mixed> $attributes) : array<string|int, mixed>
Parameters
$attributes : array<string|int, mixed>

Any attributes that currently are available from the block.

Return values
array<string|int, mixed>Reformatted attributes that are compatible with the color panel component.