• Resolved Advex

    (@totalfly)


    Hi, i’m looking about how to translate with WPML the custom user fields and custom group name. i could not find any solution.

    Can you give me some suggestion please?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @totalfly

    Thank you for reaching out to Paid Memberships Pro.

    These values are stored directly in the database, I’m not certain they would be translatable due to this.

    It might be more possible if you create these user fields with code and wrap the labels and strings in translatable functions that may be picked up by plugins like WPML.

    Here’s some examples on how to create custom fields using code instead of the GUI – https://www.paidmembershipspro.com/creating-custom-user-fields-with-code/

    I hope this helps get you started.

    Thread Starter Advex

    (@totalfly)

    It’s a bit awkward that i have to make everything manually just because your plugin does not support WPML, in any case i make the form but i have to add a field with a checkbox for the terms and conditions and privacy policy, and this is not explained in your instruction for the manual form construction.. basically in the form i need a checkbox for the DGPR as required field (must be checked to subscribe or to update the information on the edit profile page). Do you have any array example please?

    thanks a lot

    Plugin Author Andrew Lima

    (@andrewza)

    You are able to add a checkbox for Terms of Service by navigating to the Advanced Settings and choosing the page to show on checkout (this also stores a log when the user accepted this).

    Here is a guide to help get you started – https://www.paidmembershipspro.com/terms-and-conditions-for-your-membership-site/

    Here is a code sample on how to create a checkbox that is associated with accepting the privacy policy – https://gist.github.com/andrewlimaza/8df63a4e9420770a2c31c86a48d201fc

    For further GDPR compliance, you might need to capture a custom log for this custom field. As mentioned using the Terms of Service built in functionality we keep a log of when the customer accepts this checkbox.

    I recommend reaching out to WPML support to see if they support translating database stored values before moving into the code field solution. They might have a better answer for translating database stored strings.

    I hope this helps.

    Plugin Author Andrew Lima

    (@andrewza)

    Because there have not been any recent updates to this topic, we will be changing the status to resolved. If you have any new questions or if your issue persists, please feel free to create a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User field translation’ is closed to new replies.