WC_REST_Coupons_V2_Controller::get_object() protected WC 3.0.0
Get object.
{} It's a method of the class: WC_REST_Coupons_V2_Controller{}
No Hooks.
Return
WC_Data.
Usage
// protected - for code of main (parent) or child class $result = $this->get_object( $id );
- $id(int) (required)
- Object ID.
Changelog
Since 3.0.0 | Introduced. |
Code of WC_REST_Coupons_V2_Controller::get_object() WC REST Coupons V2 Controller::get object WC 5.0.0
protected function get_object( $id ) {
return new WC_Coupon( $id );
}