fbpx

Description

[wcj_customer_meta] shortcode displays current WooCommerce customer’s meta field. If user is not logged in, nothing is displayed. Please note that if you need to show customer’s meta in Booster’s PDF invoice, you need to use [wcj_order_customer_meta] shortcode.

Args


key
(required) Meta field key to display.
Default: None

Examples

[wcj_customer_meta key="first_name" before="Hi, " after="!"]

Here are some meta fields keys you can display with [wcj_customer_meta] shortcode:

billing_address_1<br />
billing_address_2<br />
billing_city<br />
billing_country<br />
billing_email<br />
billing_eu_vat_number<br />
billing_first_name<br />
billing_last_name<br />
billing_phone<br />
billing_postcode<br />
billing_state<br />
description<br />
first_name<br />
last_name<br />
nickname<br />
shipping_address_1<br />
shipping_address_2<br />
shipping_city<br />
shipping_country<br />
shipping_first_name<br />
shipping_last_name<br />
shipping_method<br />
shipping_postcode<br />
shipping_state
Accessible through:
  • [wcj_customer_meta]
Tested on WooCommerce 5.5.1 and WordPress 5.7.2