WC_REST_Products_V1_Controller::get_post_types │ protected │ WC 1.0

Get post types.

Метод класса: WC_REST_Products_V1_Controller{}

Хуков нет.

Возвращает

array.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_post_types();

Код WC_REST_Products_V1_Controller::get_post_types() WC 11.2.2

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