Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: add_meta_boxes_{$post_type}

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
1709       *
1710       *  - `add_meta_boxes_post`
1711       *  - `add_meta_boxes_page`
1712       *  - `add_meta_boxes_attachment`
1713       *
1714       * @since 3.0.0
1715       *
1716       * @param WP_Post $post Post object.
1717       */
1718      do_action( "add_meta_boxes_{$post_type}", $post );
1719
1720      /**
1721       * Fires after meta boxes have been added.
1722       *
1723       * Fires once for each of the default meta box contexts: normal, advanced, and side.
1724       *
1725       * @since 3.0.0
1726       *
1727       * @param string                $post_type Post type of the post on Edit Post screen, 'link' on Edit Link screen,