How get Cimy extra fields to display on Membership account page?

I've installed cimy user extra fields and see the new fields in the user pages. However, when you go to the front end default page view of the membership "/account/" page, the fields aren't there. How do I display these news fields on the standard Membership Pro account page for users to view? I've seen a lot of similar threads, but no specific answer to this. thank you!

  • Michael Bissett

    Hey @Emily, hope you're doing well today! :slight_smile:

    We'll need to tweak the plugin code in one place in order to accomplish this (so you'll want to note the changes made for later, as they'll have to be reapplied), but it can definitely be done!

    You'll want to add the code below to line 114 of:

    /membership/membershipincludes/includes/account.form.php

    <?php do_action( 'edit_user_profile_extra_fields'); ?>

    And then, inside of a mu-plugin (more on that here), you'll want to insert this bit of code:

    add_action('edit_user_profile_extra_fields', 'cimy_extract_ExtraFields');
    
    add_action('edit_user_profile_update', 'cimy_update_ExtraFields');

    Once you've done that, you'll now be able to see the extra fields on the account page, and you'll be able to edit the details as well (that's where that 2nd add_action call comes in). :slight_smile:

    Hope this helps!

    Kind Regards,
    Michael

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.