WordPress.org

Ready to get started?Download WordPress

Forums

Profile Builder - front-end user registration, login and edit profile
[Plugin: Profile Builder] Retrieving user registration user meta (1 post)

  1. iNK21
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.