fbpx

Description

[wcj_order_items_meta] shortcode displays WooCommerce order items meta.

Args


meta_key
(required) Order items meta key name.
Default: None

order_id
(optional) The integer ID for an order.
Default: The current order ID, if exists

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

billing_country
(optional) Make shortcode results visible only in orders with specific billing country. Value is two letter country code. Can be comma separated list.
Default: None

not_billing_country
(optional) Make shortcode results visible only in orders excluding specific billing country. Value is two letter country code. Can be comma separated list.
Default: None

Examples

This will display global (i.e. all products) product input field nr. 1:

[wcj_order_items_meta meta_key="_wcj_product_input_fields_global_1"]

This will display local (i.e. per product) product input field nr. 1:

[wcj_order_items_meta meta_key="_wcj_product_input_fields_local_1"]
Accessible through:
  • [wcj_order_items_meta]
Tested on WooCommerce 5.3.0 and WordPress 5.7.2