User Drag Order
Drag & drop ordering for WordPress users.
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/edward-alarco/user-drag-order/archive/refs/heads/main.zipDrag & Drop ordering for WordPress users using the native wp_users.user_order column.
This plugin allows administrators to visually reorder users directly from the Users admin table using drag & drop.
The order is saved in the real user_order column of wp_users, making it reliable for frontend queries.
✨ Features
- Drag & drop users directly in wp-admin → Users
- Persists order in
wp_users.user_order - AJAX saving (no page reload)
- Compatible with
get_users() - Lightweight and dependency-free (uses jQuery UI bundled with WordPress)
🧱 Folder Structure
user-drag-order/
├── user-drag-order.php
├── includes/
│ ├── class-user-drag-order.php
│ └── user-order-query.php
│ └── plugin-links.php
└── assets/
└── js/
└── admin-drag-order.js
🖱 How to Use
-
Go to: wp-admin → Users
-
Make sure users are ordered by
user_order: -
Drag and drop rows to reorder users.
-
Changes are saved automatically.
🔍 Frontend Usage Example
You can now safely order users by user_order, even when using meta_query:
$members = get_users([
'orderby' => 'user_order',
'order' => 'ASC',
]);