WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Giacomo
    Member
    Posted 2 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?)

    Giacomo

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

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

  2. Giacomo
    Member
    Posted 2 years ago #

    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.

  3. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 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
    Member
    Posted 2 years ago #

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

  5. nullvariable
    Member
    Posted 2 years ago #

    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'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic