WordPress at Your Fingertips
function is not described

WC_REST_Products_V2_Controller::get_object() protected WC 3.0.0

Get object.

{} It's a 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.

Code of WC_REST_Products_V2_Controller::get_object() WC 5.5.2

<?php
protected function get_object( $id ) {
	return wc_get_product( $id );
}