WC_REST_Products_V1_Controller::get_post_types()protectedWC 1.0

Get post types.

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

Хуков нет.

Возвращает

Массив.

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

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

Код WC_REST_Products_V1_Controller::get_post_types() WC 8.7.0

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