Okay
  Print

(New User Approve) How to avoid password reset

Important

This article is outdated. Woffice has a new documentation here: 

https://alkaweb.atlassian.net/wiki/spaces/WOF/overview

If anything is missing, let us know and we will improve it. It was designed to be searchable, more organized and more complete. 

------


If you are using New User Approve, likely you have noticed that after user approvation wordpress send an email to user containing a new password, different from password by user.

If you want turn off it, there is a filter in the plugin to avoid password reset. 

Add this code in functions.php of your child theme and all new user will receive the same password chosen during the registration.

add_filter('new_user_approve_bypass_password_reset', 'turn_off_passowrd_reset',10,0);
function turn_off_passowrd_reset() {
    return true;
}