admin管理员组文章数量:1326328
I'm writing a C# application to add subscribers to wordpress. The problem I'm having is the user_nicename and display_name fields in the database are showing but in the WordPress Users interface the Nickname is blank and there is a blank section in the Display name publicly as field. What am I missing?
Thanks
ds = new DataSet();
userAdapter = new MySqlDataAdapter("INSERT INTO `wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`, `coop_statementDate`, `coop_current_acc`, `coop_reimb_cred`, `coop_fund_bal`) VALUES(NULL, '"+txtLoginName.Text+"', MD5('{"+txtPassword.Text+"}'), '"+txtLoginName.Text+"', '"+txtEmail.Text+"', '', '0000-00-00 00:00:00.000000', '', '0', '"+txtCompanyName.Text+ "', '', '', '', '');", conn);
userAdapter.Fill(ds,"wp_users");
本文标签: usersC usernicename and Display name blank
版权声明:本文标题:users - C# user_nicename and Display name blank 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742202436a2432212.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论