WC_Product::set_menu_order()publicWC 3.0.0

Set menu order.

Method of the class: WC_Product{}

No Hooks.

Return

null. Nothing (null).

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.

WC_Product::set_menu_order() code WC 9.3.3

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