Hi gcooke,
Thanks for your response, I’ve put this into the functions.php in the child-theme, but ufter changing password with the plugin interface, this action was not triggered.
What am I doing wrong?
//Modificar el password md5 del customer en la tabla de customers
add_action( ‘after_password_reset’, ‘my_password_reset’, 10, 2 );
function my_password_reset( $user, $new_pass ) {
// Do something before password reset.
printf(“[$user][$new_pass]<br/>”);
die();
}
Thanks again.
Oddly it doesn’t and I am not sure why…
This does:
`function my_profile_update( $user_id ) {
if ( ! isset( $_POST[‘pass1’] ) || ” == $_POST[‘pass1’] ) {
return;
}
elseif(!$_POST[‘pass1’] === $_POST[‘pass2’]){
return;
}
// password changed…
}
add_action( ‘profile_update’, ‘my_profile_update’ );