diff --git a/includes/class-wc-discounts.php b/includes/class-wc-discounts.php index 13659786fe2..d5d21d471df 100644 --- a/includes/class-wc-discounts.php +++ b/includes/class-wc-discounts.php @@ -125,6 +125,16 @@ class WC_Discounts { uasort( $this->items, array( $this, 'sort_by_price' ) ); } + /** + * Get the object concerned. + * + * @since 3.3.2 + * @return object + */ + public function get_object() { + return $this->object; + } + /** * Get items. *