Support » Plugin: Simple Facebook Connect » [Plugin: Simple Facebook Connect] Custom field in registration/auth

  • 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?)

    Giacomo

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

    http://wordpress.org/extend/plugins/simple-facebook-connect/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello!
    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! 🙂

    Giacomo.

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    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.

    this would be a great feature for BuddyPress users…

    never mind, I found the hooks.

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

    add_filter('sfc_register_fields'
    add_action('sfc_register_request'

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Custom field in registration/auth’ is closed to new replies.