Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

shmk on "password_reset hook missing argument 2"

$
0
0

I'm trying to attach a function to the password_reset hook:

function my_password_reset($user, $new_password){
    /* actions */
}
add_action('password_reset', 'my_password_reset');

But it returns me the error that the second parameter, the plain password, is not passed to my function.

Warning: Missing argument 2 for my_password_reset()

I can't understand what is wrong with my function, anyone could help me?


Viewing all articles
Browse latest Browse all 8245

Trending Articles