class Ranks_ManagementLives in the **Ranks** tab of Clanbite → Settings as a "Manage members" sub-view.
The view is a small script mounted into the core admin integration slot self::SLOT_ID; it talks to the REST routes registered here (clanbite-ranks/v1/members/{id}). self::apply_operation() is the single place that changes a member's assigned rank, shared by REST and the legacy admin-post.php action.
class final
- Full name
Kernowdev\ClanbiteRanks\Extension\Ranks_Management
Constants
| Name | Value | Description |
|---|---|---|
SLOT_ID | 'clanbite-ranks-manage' | Integration slot id the management view mounts into (see core clanbite:admin-integration-mount). |
VIEW_ID | 'manage' | Sub-view id used in the view query argument of the Ranks tab. |
Methods
apply_operation()Assign or reset a member's rank on a ladder.enqueue_assets()Load the management view script on the Clanbite settings screen.get_manage_url()URL of the management view inside the Ranks settings tab.handle_post()Legacy admin-post.php handler (kept for integrations that still post the old form).member_payload()Describe a member and where they stand on each ladder.redirect_legacy_page()The management screen used to be its own menu page; send old bookmarks to the Ranks tab.register_menu()Register Ranks Management submenu.register_rest_routes()Register the member lookup and rank change routes (manage_options only).register()Register admin hooks.render_page()Render management page.rest_change_rank()REST: assign or reset a member's rank on one ladder.rest_get_member()REST: a member's rank on every ladder.rest_permission()Permission check shared by the management routes.
Defined in inc/Extension/Ranks_Management.php
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Updated. |