WC_REST_Products_V1_Controller::get_post_types()
Get post types.
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();
WC_REST_Products_V1_Controller::get_post_types() WC REST Products V1 Controller::get post types code WC 9.8.1
protected function get_post_types() { return array( 'product', 'product_variation' ); }