Support

Account

Home Forums ACF PRO Hook ACF Fields with WooCommerce when product is create

Unread

Hook ACF Fields with WooCommerce when product is create

  • Hello,

    We search to have via a hook all the fields of product when it is create.
    We have all data fields with this function : $product = wc_get_product($product_id);
    We can take the ACF fields when is it’s an update with this hook : woocommerce_update_product.
    But we want have the ACF data fields when a product is create (ex. during save_post product) but the response of wc_get_product($product_id); has not the data of ACF fields and with hooks like “woocommerce_new_product” or “save_post” we can’t take the data of ACF before it’s save in database.
    We have find acf/save_post, but how can we use this function with woocommerce ACF fields ?

    Thx a lot.

Viewing 1 post (of 1 total)

The topic ‘Hook ACF Fields with WooCommerce when product is create’ is closed to new replies.