wp-admin-postbox-sortable

Official

Persist and sort WordPress metaboxes.

Authorvikingokft
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Custom WordPress admin pages often show collapsible and draggable “postbox” UI, but the user’s collapsed state and drag order don’t persist because the required core script wiring, DOM contract, and nonce fields are missing.

Core Features & Use Cases

  • Wire core postbox behavior on custom screens: enables WordPress-like collapse, sortable drag order, and Screen Options visibility for your own plugin admin page.
  • Correct DOM + script + initialization: ensures the required .meta-box-sortables > .postbox > .hndle structure and proper initialization via postboxes.add_postbox_toggles( pageId ).
  • Reliable persistence via core AJAX nonces: includes both nonce fields (closedpostboxesnonce and meta-box-order-nonce) so the existing closed-postboxes and meta-box-order endpoints store user preferences correctly.

Quick Start

Use the wp-admin-postbox-sortable skill to implement collapsible and drag-sortable postboxes on your plugin’s custom admin page that persist layout and hidden boxes across refreshes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: wp-admin-postbox-sortable
Download link: https://github.com/vikingokft/wp-agent-skills/archive/main.zip#wp-admin-postbox-sortable

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.