WC_Product::get_menu_order
Get menu order.
Method of the class: WC_Product{}
No Hooks.
Returns
Int.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_menu_order( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default:'view'
Changelog
| Since 3.0.0 | Introduced. |
WC_Product::get_menu_order() WC Product::get menu order code WC 10.7.0
public function get_menu_order( $context = 'view' ) {
return $this->get_prop( 'menu_order', $context );
}