WordPress at a glance
function is not described

WC_REST_Products_V1_Controller::get_product_menu_order() protected WC 1.0

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 product menu order.

{} It's a method of the class: WC_REST_Products_V1_Controller{}

No Hooks.

Return

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 3.0.0

Code of WC_REST_Products_V1_Controller::get_product_menu_order() WC 5.0.0

<?php
protected function get_product_menu_order( $product ) {
	return $product->get_menu_order();
}