WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
[resolved] How to add more field to registration form? (7 posts)

  1. TC.K
    Member
    Posted 2 years ago #

    Hi,

    I would like to know can I add more field to the register form like first name and last name? And this field should be mandatory.

    Thanks

    http://wordpress.org/extend/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    Here is an example of how to do that:
    https://gist.github.com/1389944

  3. TC.K
    Member
    Posted 2 years ago #

    wow...Thanks!!

  4. TC.K
    Member
    Posted 2 years ago #

    Hi, I found the code you provided is great, however when I tried it in debug mode, it give me Notice: Undefined index warning for $firstname, $lastname, $companyname and $repname. Though this is not a big problem, but is there any way to get rid of this problem?

    Also, i also get the similar warning Notice: Undefined offset: -1 ...plugins/paid-memberships-pro/paid-memberships-pro.php on line 49 upon latest version of PMP activated.

  5. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the heads up RE the notices/warnings. Will get them fixed with the next push.

    (Those warnings shouldn't affect anything if you turn off debug mode or otherwise squelch the warnings and notices.)

  6. strangerstudios
    Member
    Plugin Author

    Posted 2 years ago #

    FYI, I updated the gist to have some more checks to prevent those warnings.
    https://gist.github.com/1389944

    1.4.9 should be out soon with the fix for that other warning. (I think it has to do with running PMPro from one word domains like 'localhost' or maybe IP addresses. Anyway, 1.4.9 should handle them.)

  7. lemonhead101
    Member
    Posted 1 year ago #

    Hello,

    This code is just what I seem to need. But could you advise... exactly where do I put it in the plugin files? Or is there are ready made/ amended version I can download.

    Also, could you not add this as standard so it can be switched on or off in the plugin config. to help non-coders like myself?

    Thanks in advance, :-)

    L-

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic