WordPress.org

Support

Support » Plugins and Hacks » User registration & user profile - Profile Builder » [Plugin: Profile Builder] Retrieving user registration user meta

[Plugin: Profile Builder] Retrieving user registration user meta

  • I am working on a plugin where i have created 3 extra fields in user registration form (birthday, country, language) and when a user completes his registration (in the front end) i use this:

    add_action(‘user_register’, ‘get_extra_meta_data’);

    function get_extra_meta_data($user_id) {
    $newUser = get_user_meta($user_id);
    $userMeta = array();
    foreach ($newUser as $key => $value) {
    $userMeta[$key] = $value[0];
    }
    //do something with $userMeta
    }

    var_dump($userMeta) doesn’t return the 3 extra meta values although they exist in usermeta table on database.

    Could you help with that?

    http://wordpress.org/extend/plugins/profile-builder/

  • The topic ‘[Plugin: Profile Builder] Retrieving user registration user meta’ is closed to new replies.
Skip to toolbar