开发者

How to insert user details in WordPress using MySQL

开发者 https://www.devze.com 2023-03-05 03:51 出处:网络
hi I am writing migration script for Wordpress. I am stucked on inserting details in wordpress using sql statements.

hi I am writing migration script for Wordpress.

I am stucked on inserting details in wordpress using sql statements.

Insert values in wp_users are not reflection in admin panel. (account are there but total account is not matching )

how to fix this prob ? my current query is

insert into wp_users (user_login,user_nicename开发者_如何学编程,user_email,user_registered,user_status,display_name,user_pass) values(?,?,?,?,?,?,?)


they are user_id, meta_key and meta_value. If you need to set nickname of any user, insert user_id for that user, "nickname" and metakey, and actual value, for example "vidya" in meta_value,

insert into wp_usermeta set user_id = 10, meta_key = 'nickname', meta_value = 'vidya';

0

精彩评论

暂无评论...
验证码 换一张
取 消