woocommerce_save_product_variation

woocommerce_save_product_variation

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_save_product_variation') is found 1 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-product-data.php line 591
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
                    do_action( 'woocommerce_admin_process_variation_object', $variation, $i );
     
                    $variation->save();
                    /* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
                    do_action( 'woocommerce_save_product_variation', $variation_id, $i );
                    /* phpcs: enable */
                }
            }
            // phpcs:enable WordPress.Security.NonceVerification.Missing
        }
    }

See this hook used in plugins: