Wp Admin Postbox Sortable

Wire up WordPress postboxes on custom plugin admin pages with collapse, drag sorting, Screen Options visibility, and core persistence. Covers `add_meta_box()`, `do_meta_boxes()`, the `postbox` script, `postboxes.add_postbox_toggles( pageId )`, the `.meta-box-sortables` / `.postbox` / `.hndle` DOM contract, and the two nonce fields plugins forget, `closedpostboxesnonce` and `meta-box-order-nonce`. Use when adding collapsible admin boxes, draggable metabox layouts, or Screen Options show/hide behavior to a custom plugin admin screen; use raw `jquery-ui-sortable` instead for non-postbox repeater rows.

vikingokft 3e028b6 13.7 KB Updated 0 repo stars

File contents

vikingokft/vikingo-studio-skills/tree/main/wordpress/wp-admin-postbox-sortable commit 3e028b6f44

Frequently asked questions

npx skillmds add vikingokft/wp-admin-postbox-sortable