[wcj_order_meta]

Display any WooCommerce order's meta

Description

[wcj_order_meta] shortcode displays any WooCommerce order’s meta by key name. For example you can use it in Booster’s PDF invoice template to display any (even third party plugin’s) meta.

Args

meta_key
(required) Meta key.

Default: None
before
(optional) Text to place before the content. If content is empty this argument is ignored.

Default: None
after
(optional) Text to place after the content. If content is empty this argument is ignored.

Default: None

Example

[wcj_order_meta meta_key="_your_key" before="My key: "]
Accessible through:
  • [wcj_order_meta]
Tested on WooCommerce 3.1.1 and WordPress 4.8
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

No comments yet.