Redirecting Subscriber Users to the home page after updating their profile

Hope this links will help you,

link

OR

This is the function that you need:

add_action( 'profile_update', 'custom_profile_redirect', 12 );
function custom_profile_redirect() {
    wp_redirect( trailingslashit( home_url() ) );
    exit;
}

You can also set it for a specific User Role:

add_action( 'profile_update', 'custom_profile_redirect', 12 );
function custom_profile_redirect() {
  if ( current_user_can( 'subscriber' ) ) {
      wp_redirect( trailingslashit( home_url() ) );
      exit;
  }
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)