WordPress account management

Reset user account without email notify via WP-CLI

function anchor_reset_password {
  read -p $'\e[31mUsername\e[0m: ' username
  read -s password
  user_id=$(wp user get $username --field=ID) && wp eval "wp_set_password(\"${password}\", $user_id);"
  unset password
}
anchor_reset_password