• Resolved giadone

    (@giadone)


    Hi, i want to use registration page of charitable, but it show only email, username and password to add for register.
    I want to show the remain existent fields, as name, lastname, address, etc in the registration page.
    In which mode i can add the missing (already existent in original wordpress form) fields??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPCharitable

    (@wpcharitable)

    Hi @giadone,

    Charitable’s registration form was designed to be a quick form (often in combination with Ambassador’s addon) which is why normally after register a user can be taken to complete their profile information on the Charitable profile page.

    However it is possible for a developer to hook into the applicable filters and add additional fields – this is more for adding your own custom fields/meta-data and depending on what you add might not automatically sync with the “WordPress form fields”. Here’s the code snippet, which likely you will need to place and update in your functions.php (or a custom plugin as long as the filters hook after Charitable loads):

    https://github.com/Charitable/library/commit/e82d09a37ea07036dc07b0bf4ea98f8e601f9901

    If you want the chance of these working with WordPress form fields you probably want to name fields the same as what WordPress names the meta keys in the user table. I couldn’t find a good link to show the default list but this link seems to have a recent list (“first_name”, “last_name”). Charitable saves it’s donor information with meta keys such as “donor_address”, “donor_city”, “donor_postcode”, etc. Note that code snippets on Github isn’t something officially supported but we try to answer questions as best we can.

    There are is also customization to the form shortcode itself if that helps:

    https://www.wpcharitable.com/documentation/account-shortcodes/

    More expansion (via settings and/or non-code snippets) is on the roadmap for the register form and how/when that is released we will be passing that along in our change logs and updates.

    Hope this information provides help. ??

    Plugin Author WPCharitable

    (@wpcharitable)

    I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add fields on registration form’ is closed to new replies.