WordPress at Your Fingertips
function is not described

WC_Product::set_menu_order() public WC 3.0.0

Set menu order.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product = new WC_Product();
$WC_Product->set_menu_order( $menu_order );
$menu_order(int) (required)
Menu order.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product::set_menu_order() WC 5.5.2

<?php
public function set_menu_order( $menu_order ) {
	$this->set_prop( 'menu_order', intval( $menu_order ) );
}