APP_Order::remove_item( string $type = '', int $price, int $post_id )

Removes an item or items from the order. Removes all items that match the criteria Use remove_item_by_index for super-specific removal.


Package


    Description Description


    Parameters Parameters

    $type

    (string) (Optional) (optional) A string representing the type of item to remove

    Default value: ''

    $price

    (int) (Required) (optional) The price of the item being removed

    $post_id

    (int) (Required) (optional) The post that this item affects


    Top ↑

    Return Return

    (int|bool) Quantity of items removed. Boolean False on failure


    Premium WordPress Apps

    Top ↑

    User Contributed Notes User Contributed Notes

    You must log in before being able to contribute a note or feedback.