- This topic has 1 reply, 1 voice, and was last updated 4 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Custom field and shortcuts
Hi, i hope this not been asked before. I was looking in the forum but i didnt find anything.
I have my own user login and registration in my website. Also, i have custom fields for a user profile, like for example Shirt Size. In my code i create a shortcode for each custom property of an user profile. So in any part of my web for example the shortcode [userVariableName type=’shirt_size’] returns me “S” if the user choose shirt size “S” in his profile.
In the booking form registration im interested in putting some custom information, for example shirt size, but if a user filled their profile with shirt size, the booking form have to auto fill this value(like with FirstName, LastName, and EMAIL).
Im creating custom fields and filling the value with the shortcode, but i dont have luck. I see the shortcode name and not the value. For example:
Shirt size: [userVariableName type=’shirt_size’]
When i hope to see:
Shirt size: S
With custom attributes, if in value i put a shortcode, works perfectly! But im interested in accomplish this with custom fields.
Any advice?
Thank you in advance.
Never mind, i found a workaround with the filter “eme_field_value_filter” documented in: https://www.e-dynamics.be/wordpress/category/documentation/12-hooks-and-filters/