User data subkey

Help Desk ›› How to ›› User data subkey
13 March, 2022 07:47:42
j.durand
Topics: 8
Messages: 29
Hi,

I have the same request for Woocommerce order pdf template. Tried your snippet without result.
[e2pdf-wc-order key="fsbdd_user_referentrel" meta="true" subkey="user_email"] only render user ID.
fsbdd_user_referentrel is my custom field (metabox io). It's user select dropdown.

regards
13 March, 2022 08:05:43
E2Pdf
Support
Topics: 7
Messages: 3331
Hi,

What is the output do you get with [e2pdf-wc-order key="fsbdd_user_referentrel" meta="true"]? Is it User ID?

If so, try to use please construction as follows:

[e2pdf-user id="dynamic" key="user_email"][e2pdf-wc-order key="fsbdd_user_referentrel" meta="true"][/e2pdf-user]

P.S. Such construction must be available with the latest RC version

We remain at your service.
We would really appreciate your feedback at WordPress.org!
13 March, 2022 08:30:41
j.durand
Topics: 8
Messages: 29
Awesome!!!!
Thank you