How user and role data are loaded
Users list – Fetched from FleekDash endpoint (e.g. GET /wp-json/fleekdash/v1/users) with optional role and per_page. Response is formatted for the grid (avatars, display names, roles). Cache may be used (e.g. with cache bypass on first load or manual refresh).
Roles list – Fetched for the role filter and for the Role Management drawer (e.g. via fetchRolesOptimized or platform API). Includes native and custom roles with capability data.
Update user – User profile updates (name, email, avatar, etc.) and role updates use FleekDash or WordPress REST endpoints (e.g. PUT /fleekdash/v1/users/:id, PUT /fleekdash/v1/users/:id/roles). Authentication uses the same FleekDash auth (e.g. nonce).
Role create/update/delete – Role Management uses WordPress's role and capability system. Create, update, and delete roles via the FleekDash or WordPress API so existing plugins and core continue to work.