Move position in post list for a custom checkbox column

Quoting from https://www.isitwp.com/change-wordpress-admin-post-columns-order/

All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:

add_filter('manage_posts_columns', 'column_order');
function column_order($columns) {
  $n_columns = array();
  $move="author"; // what to move
  $before="title"; // move before this
  foreach($columns as $key => $value) {
    if ($key==$before){
      $n_columns[$move] = $move;
    }
      $n_columns[$key] = $value;
  }
  return $n_columns;
}

If you want to move multiple columns you will need to do things in another way as the above code was just to make things as simple as possible. The next snippet will move both the date and author columns before the post title column.

add_filter('manage_posts_columns', 'column_order');
function column_order($columns) {
  $n_columns = array();
  $before="title"; // move before this
 
  foreach($columns as $key => $value) {
    if ($key==$before){
      $n_columns['date'] = '';
      $n_columns['author'] = '';
    }
      $n_columns[$key] = $value;
  }
  return $n_columns;
}

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