WC_REST_Products_V2_Controller::get_object()
Get object.
Method of the class: WC_REST_Products_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. |
WC_REST_Products_V2_Controller::get_object() WC REST Products V2 Controller::get object code WC 9.8.2
protected function get_object( $id ) { return wc_get_product( $id ); }