WC_REST_Legacy_Products_Controller::get_post_types()
Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Get post types.
Method of the class: WC_REST_Legacy_Products_Controller{}
No Hooks.
Return
Array
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_post_types();
Changelog
Deprecated since | 3.0.0 |
WC_REST_Legacy_Products_Controller::get_post_types() WC REST Legacy Products Controller::get post types code WC 7.7.0
protected function get_post_types() { return array( 'product', 'product_variation' ); }