ACF Load Field Groups Programmatically [closed]

In case anyone needs it, this is working for my needs:

add_filter('acf/get_field_group', 'my_change_field_group');
function my_change_field_group($group) {

    $get_current_screen = get_current_screen();
    $get_current_post_type = $get_current_screen->post_type;
    $my_option = get_field('my-option','option');

    if (
        $get_current_post_type == 'my-cpt' &&
        $my_option == 'stuff' &&
        $group['key'] == 'group_123456789'
    ) {
        $group['location'] = array(
            array(
                array(
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'my-cpt',
                ),
            ),
        );
    }
    return $group;
};

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