add getter for class' object property
This commit is contained in:
parent
8dc3d689c6
commit
caf03064ac
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue