Property | Type | Description | |
---|---|---|---|
$meta | Post meta data | ||
$product | object |
Method | 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 |
return | string | void |
public get_formatted ( string $hideprefix = '_' ) : array | ||
$hideprefix | string | exclude meta when key is prefixed with this, defaults to `_` |
return | array |
public get_formatted_legacy ( $hideprefix = '_' ) : array | ||
return | array |