MetaBoxes final class
Minn\Admin\MetaBoxes · public/minn/src/Minn/Admin/MetaBoxes.php · 56 lines
One screen's meta boxes as add_meta_box files them on the reference (probe admin-doubts): context => priority => id => box, a removed box kept as false so it stays removed.
Constants and properties
| private | PRIORITIES = array ( 0 => 'high', 1 => 'core', 2 => 'default', 3 => 'low', ) |
Public
| static | add(array $boxes, string $context, string $priority, string $id, array $box): array# | The screen's boxes with one filed. The context is made first. A box filed already is taken out of wherever it was, except at "core": a removed box stays removed, one filed at "default" moves to "core" as it was, and any other is left alone. At "sorted" the box keeps its own title, callback and arguments.
@return array<string, mixed> | ||||||
| static | remove(array $boxes, string $context, string $id): array# | The screen's boxes with one removed from a context: false at every priority, so a later add at "core" leaves it out.
@return array<string, mixed> |
Nothing matches.