woocommerce_ajax_save_product_variations

woocommerce_ajax_save_product_variations

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_ajax_save_product_variations') is found 1 times:

  • /includes/class-wc-ajax.php line 2440
    		$product_id                           = absint( $_POST['product_id'] );
    		WC_Admin_Meta_Boxes::$meta_box_errors = array();
    		WC_Meta_Box_Product_Data::save_variations( $product_id, get_post( $product_id ) );
    
    		do_action( 'woocommerce_ajax_save_product_variations', $product_id );
    
    		$errors = WC_Admin_Meta_Boxes::$meta_box_errors;
    
    		if ( $errors ) {
    			echo '<div class="error notice is-dismissible">';