mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-16 22:32:56 +00:00
2.6.1
This commit is contained in:

committed by
Remco Tolsma

parent
42964bef17
commit
a60db3815d
24
includes/class-wc-subscription-line-item-removed.php
Executable file
24
includes/class-wc-subscription-line-item-removed.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Subscription Line Item (product) Removed
|
||||
*
|
||||
* Line items removed from a subscription by a customer have the line_item_removed line item type. This class extends WC_Order_Item_Product to implement this line item type.
|
||||
*
|
||||
* @author Prospress
|
||||
* @category Class
|
||||
* @package WooCommerce Subscriptions
|
||||
* @since 2.6.0
|
||||
*/
|
||||
|
||||
class WC_Subscription_Line_Item_Removed extends WC_Order_Item_Product {
|
||||
|
||||
/**
|
||||
* Get item type.
|
||||
*
|
||||
* @return string
|
||||
* @since 2.6.0
|
||||
*/
|
||||
public function get_type() {
|
||||
return 'line_item_removed';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user