WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] User update query: what file? (3 posts)

  1. Bram
    Member
    Posted 4 years ago #

    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

  2. s_ha_dum
    Member
    Posted 4 years ago #

    ... 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.

  3. Bram
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic