add getter for class' object property

This commit is contained in:
Kathy Darling 2018-02-16 15:52:04 -06:00
parent 8dc3d689c6
commit caf03064ac
1 changed files with 10 additions and 0 deletions

View File

@ -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.
*