WC_REST_Products_V1_Controller::get_post_types
Get post types.
Метод класса: WC_REST_Products_V1_Controller{}
Хуков нет.
Возвращает
array.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_post_types();
Код WC_REST_Products_V1_Controller::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' );
}