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.


Top ↑

Parameters

$classes

(string[])An array of postbox classes.


Top ↑

Source

File: wp-admin/includes/post.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More