WC_REST_Products_V1_Controller::get_product_menu_order
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Get product menu order.
Method of the class: WC_REST_Products_V1_Controller{}
No Hooks.
Returns
Int.
Usage
// protected - for code of main (parent) or child class $result = $this->get_product_menu_order( $product );
- $product(WC_Product) (required)
- Product instance.
Changelog
| Deprecated since | 3.0.0 |
WC_REST_Products_V1_Controller::get_product_menu_order() WC REST Products V1 Controller::get product menu order code WC 10.5.0
protected function get_product_menu_order( $product ) {
return $product->get_menu_order();
}