[wcj_order_custom_field]

Display WooCommerce order custom field

Description

[wcj_order_custom_field] shortcode displays WooCommerce order custom field.

Args

name
(required) Custom field name.

Default: None
key
(optional) If field value is an array, you can additionally set array key to retrieve.

Default: None

Examples

[wcj_order_custom_field name="my_custom_field"]
[wcj_order_custom_field name="_adq_wpcf7" key="text-77" before="Field value: "]
Accessible through:
  • [wcj_order_custom_field]
Tested on WooCommerce 3.8.1 and WordPress 5.3
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

Comments

3 Comments

  1. albertm December 4, 2019 at 10:35 am #

    HI, I activated the “cost of good” module and now I need to recall that field (cost and expeditions) in the order summary.
    I use [wcj_order_custom_field] in the email custom, but I don’t understand what to insert as the name of the field to be called.
    tips?

    Reply to thread

    Avatar
  2. Ibrahim Jaber May 16, 2018 at 4:07 am #

    Does this fields use the meta keys? or is it something else

    Reply to thread

    Avatar