Support

Home Forums WP User Integration Edit user profile shortcode

Edit user profile shortcode

Posted: May 12, 2016 at 2:17 am


robbstcs

May 12, 2016 at 2:17 am

Referring to the topic below.

https://eventespresso.com/topic/front-end-edit-user-profile-shortcode/

I’m trying to insert this shortcode into a page template and its not working.

<?php echo do_shortcode('[ESPRESSO_EDIT_PROFILE]'); ?>

Using EE4


robbstcs

May 12, 2016 at 2:21 am

Is this an available shortcode for EE4 and wp user intergration add on ?


Tony

  • Support Staff

May 12, 2016 at 3:06 am

Hi there,

That shortcode was from EE3 and is not available within EE4.

Which values are you wanting to allow users to edit?


robbstcs

May 13, 2016 at 3:38 am

Hi Tony,

I’m aiming to have address stored in the Users profile so that could be automatically populared like the other user profile information on the checkout pages.

Do I need to add fields (address 1, address 2 etc.. etc..) to the user profiles and then will they automatically populate in checkout? or will there be some code needed for Events Espresso to populate these values?

Thanks.


Josh

  • Support Staff

May 13, 2016 at 8:37 am

Hi there,

I can suggest a different approach where you include the address fields on the registration form and after they fill out the form for the first time, the next time they’re back to register for another event, their address fields will automatically populate on the form. Here’s a link to some example code that makes this happen:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/jf_filter_address_answer_for_wpuser.php

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

The support post ‘Edit user profile shortcode’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso