Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31588

shmk on "[Plugin: WooCommerce - excelling eCommerce] password_reset hook missing argument 2"

$
0
0

I'm using woocommerce and 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 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?

http://wordpress.org/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 31588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>