Update documentation in class-wc-order-item-product.php (#41160)

* Update class-wc-order-item-product.php

* Changelog.

* Fix alignment.

---------

Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
This commit is contained in:
Dekadinious 2023-12-20 22:52:00 +01:00 committed by GitHub
parent 06dc19ebd4
commit d8e01b23cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Update item subtotal and total inline docs.

View File

@ -269,7 +269,8 @@ class WC_Order_Item_Product extends WC_Order_Item {
}
/**
* Get subtotal.
* Gets the item subtotal. This is the price of the item times the quantity
* excluding taxes before coupon discounts.
*
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
* @return string
@ -289,7 +290,8 @@ class WC_Order_Item_Product extends WC_Order_Item {
}
/**
* Get total.
* Gets the item total. This is the price of the item times the quantity
* excluding taxes after coupon discounts.
*
* @param string $context What the value is for. Valid values are 'view' and 'edit'.
* @return string