• Resolved Bram

    (@bramos_ditaljanos)


    Hi all,

    Since a couple of days I’m using WP. I’ve integrated my own theme, and I’m working on some plugins now. For one of these to work properly, I’ve added an extra field in the ‘users’-table. I already managed to display an input-field in the User Control Panel (that is only visible by admins), but I can’t find the file that contains the MySQL-query that updates the user information.

    In the current situation, the input displays the value I’ve inserted in the table (via PhpMyAdmin), but if I change that value and hit ‘Update User’, the page refreshes and nothing happens.

    Thanks in advance,
    Bram

Viewing 2 replies - 1 through 2 (of 2 total)
  • … but I can’t find the file that contains the MySQL-query that updates the user information.

    You don’t need to know which file its in. In fact, hacking a core file is a bad idea if you can avoid it. You can avoid it. Look into the user registration hooks— edit_user_profile, personal_options_update, profile_update, maybe others.

    Thread Starter Bram

    (@bramos_ditaljanos)

    Thanks for you reply! I still couldn’t fix my problem, but I’ve found another possible solution, which involves a subselect in the plugin-query.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User update query: what file?’ is closed to new replies.