Simple Facebook Connect
Custom field in registration/auth (5 posts)

  1. Giacomo
    Posted 4 years ago #

    I'm trying to have custom fields for the registration of new users.

    I've already changed the $fields passed to the Facebook API so the fields are showing up in the registration plugin.

    I've also added at the end of sfc-register.php:
    $_POST['customfield'] = $info['location'];
    so that I'm passing the custom field already.

    What I need to do now is to store the custom field in the user_meta table.

    I guess I have to store the value with an action hook using the function: add_user_meta('id, customfield, $_POST['customfield')

    Am I right?
    How can I do it? (where's the right hook?)


    ps. Otto... thanks for the AWESOME plugin!!!


  2. Giacomo
    Posted 4 years ago #

    Is the question too broad/stupid/simplicistic/complex/long?

    Because I don't see any answer yet... while all the other posts have some kind of answer.

    Thanks anyway.. the plugin is great! :)


  3. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 4 years ago #

    The register plugin doesn't have any good way to do this sort of thing yet. I'll keep it in mind for 1.1 though, and perhaps add some filters or action hooks to make it easier to do.

  4. nullvariable
    Posted 4 years ago #

    this would be a great feature for BuddyPress users...

  5. nullvariable
    Posted 4 years ago #

    never mind, I found the hooks.

    for those who find this via Google, here's the relevant hooks:


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic