APP_Order::add_item( string $type, int $price, int $post_id, bool $unique = false )
Adds an item to the order.
Package
Description Description
Parameters Parameters
- $type
(string) (Required) A string representing the type of item being added
- $price
(int) (Required) The price of the item
- $post_id
(int) (Required) (optional) The post that this item affects
- $unique
(bool) (Optional) (optional) Is the item unique per order
Default value: false
Return Return
(bool) A boolean True if the item has been added, False otherwise