postbox_classes_{$page}_{$id} WordPress Filter Hook
The postbox_classes_{$page}_{$id} hook is used to add custom classes to postboxes on a specific page and with a specific id. This hook is useful for customizing the appearance of postboxes on a per-page basis.
apply_filters( "postbox_classes_{$page}_{$id}", string[] $classes ) #
Filters the postbox classes for a specific screen and screen ID combo.
Description
The dynamic portions of the hook name, $page
and $id
, refer to the screen and screen ID, respectively.
Parameters
- $classes
(string[])An array of postbox classes.
Source
Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |