Свойство | Type | Description | |
---|---|---|---|
$meta | Post meta data | ||
$product | object |
Méthode | Description | |
---|---|---|
__construct ( array $item = [], WC_Product $product = null ) | Constructor. | |
display ( boolean $flat = false, boolean $return = false, string $hideprefix = '_', string $delimiter = ", " ) : string | void | Display meta in a formatted list. | |
get_formatted ( string $hideprefix = '_' ) : array | Return an array of formatted item meta in format e.g. | |
get_formatted_legacy ( $hideprefix = '_' ) : array | Return an array of formatted item meta in format e.g. |
public __construct ( array $item = [], WC_Product $product = null ) | ||
$item | array | defaults to array() |
$product | WC_Product | defaults to null |
public display ( boolean $flat = false, boolean $return = false, string $hideprefix = '_', string $delimiter = ", " ) : string | void | ||
$flat | boolean | (default: false) |
$return | boolean | (default: false) |
$hideprefix | string | (default: _) |
$delimiter | string | Delimiter used to separate items when $flat is true |
Résultat | string | void |
public get_formatted ( string $hideprefix = '_' ) : array | ||
$hideprefix | string | exclude meta when key is prefixed with this, defaults to `_` |
Résultat | array |
public get_formatted_legacy ( $hideprefix = '_' ) : array | ||
Résultat | array |