Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_type_labels_{$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
1653       * The dynamic portion of the hook name, `$post_type`, refers to
1654       * the post type slug.
1655       *
1656       * @since 3.5.0
1657       *
1658       * @see get_post_type_labels() for the full list of labels.
1659       *
1660       * @param array $labels Array of labels for the given post type.
1661       */
1662      return apply_filters( "post_type_labels_{$post_type}", $labels );
1663 }
1664
1665 /**
1666  * Build an object with custom-something object (post type, taxonomy) labels
1667  * out of a custom-something object
1668  *
1669  * @since 3.0.0
1670  * @access private
1671  *