Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin update first_name, last_name in wp_usermeta on activation


peterverkooijen
Participant

@peterverkooijen

With this:

$array = $wpdb->get_var("SELECT meta FROM $wpdb->signups");
$my_vars = unserialize($array);

foreach($my_vars as $name => $value)
{
print $name . ' has the value: ' . $value . '<br />';
}

I get this:

field_1 has the value: Julius Caesar

xprofile_field_ids has the value: 1,

avatar_image_resized has the value: /serverpath/wp-content/blogs.dir/1/files/avatars/0/caesar.jpg

avatar_image_original has the value: /serverpath/wp-content/blogs.dir/1/files/avatars/0/caesar.jpg

public has the value: 1

lang_id has the value: 1

blogname has the value: theempire

blog_title has the value: The Roman Empire

So how do I get just that ‘Julius Caesar’ value?

I’ve tried adding this and many variations. Nothing works:

$value['field_1'] = $fullname;

echo $fullname;

Skip to toolbar