woocommerce_updated_product_stock

woocommerce_updated_product_stock

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_updated_product_stock') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 1726
    1722
    1723
    1724
    1725
    1726
    1727
    1728
    1729
    1730
    1731
    1732
         *
         * @since 3.6
         * @param int $product_id_with_stock Product ID that was updated directly.
         */
        do_action( 'woocommerce_updated_product_stock', $product_id_with_stock );
     
        return $new_stock;
    }
     
    /**
     * Update a product's sale count directly.