Import first_name/last_name
-
I’m migrating from a vbulletin forum (3.x) and I’ve figured out how to do a bit of customization, bringing over custom fields in the user table. But one thing I’m having a tough time figuring out is how to bring in the first_name and last_name to the usermeta table.
For some reason, the following does not work:
// fx: last name Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'user', 'from_fieldname' => 'lastname', 'to_type' => 'user', 'to_fieldname' => 'last_name' );
But the following does:
// fx: last name Stored in usermeta) $this->field_map[] = array( 'from_tablename' => 'user', 'from_fieldname' => 'lastname', 'to_type' => 'user', 'to_fieldname' => 'fx_last_name' );
Simply by changing “last_name” to “fx_last_name” it works. I’d prefer to have it bring it in as the WordPress defaults. I understand I can force a move into the correct field once I import, but as I’ll have about 24 hours on the migration day, i’d love to get it accomplished in the import script.
Thanks for any insights.
- You must be logged in to reply to this topic.