WordPress at Your Fingertips
function is not described

WC_REST_Products_V1_Controller::get_post_types() protected WC 1.0

Get post types.

{} It's a method of the class: WC_REST_Products_V1_Controller{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_post_types();

Code of WC_REST_Products_V1_Controller::get_post_types() WC 5.9.0

protected function get_post_types() {
	return array( 'product', 'product_variation' );
}