public function adminMenuOrderSetting($args)
    {
        if (empty($args)) {
            return;
        }

        add_filter('custom_menu_order', '__return_true');
        add_filter('menu_order', function ($menu_ord) use ($args) {
            return !$menu_ord ? [] : $args;
        });
    }
public function adminMenuOrderSetting($args)
    {
        if (empty($args)) {
            return;
        }

        add_filter('custom_menu_order', '__return_true');
        add_filter('menu_order', function ($menu_ord) use ($args) {
            return !$menu_ord ? [] : $args;
        });
    }
public function adminMenuOrderSetting ( $ args ) { if ( empty ( $ args ) ) { return ; } add_filter ( 'custom_menu_order' , '__return_true' ) ; add_filter ( 'menu_order' , function ( $ menu_ord ) use ( $ args ) { return ! $ menu_ord ? [ ] : $ args ; } ) ; }
Reorder WP admin main menu.

@param array $args
Reorder WP admin main menu .