Too few arguments to function woocommerce_update_product_acf_save_post()

I got it working with this! 🙂

function update_on_product_save($product_id) {

    global $product;
    $product = wc_get_product( $product_id );
    $product_title = $product->get_name();
    $product_image_id = $product->get_image_id();

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