Login form hook in coursepres plugin


you guys have not used wp_signon function for login form.

I wish to update some value of user when they logged in.

I found this wp_login action for this but it is not working because you have not use wp_signon() function.


Now if i wish to update the some value of user in there meta table how could i do?

Is there any feasibility for this? Is there any hook or action or filter which help me to achieve this functionality?

Thnaks in advace.

  • Panos
    • SLS

    Hi Peter ,

    I check CoursePress and it does use the wp_signon() function.

    You should be able to hook into it with

    function wpmudev_update_user_meta( $user_login, $user ) {
        //do something to user meta
    add_action('wp_login', 'wpmudev_update_user_meta', 10, 2);

    Could you please provide further information of what you want to achieve so I can test something similar in my installation?


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.