Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: postbox_classes_{$screen_id}_{$box_id}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1374       * Filters the postbox classes for a specific screen and box ID combo.
1375       *
1376       * The dynamic portions of the hook name, `$screen_id` and `$box_id`, refer to
1377       * the screen ID and meta box ID, respectively.
1378       *
1379       * @since 3.2.0
1380       *
1381       * @param string[] $classes An array of postbox classes.
1382       */
1383      $classes = apply_filters( "postbox_classes_{$screen_id}_{$box_id}", $classes );
1384
1385      return implode( ' ', $classes );
1386 }
1387
1388 /**
1389  * Returns a sample permalink based on the post name.
1390  *
1391  * @since 2.5.0
1392  *