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
1644       * The dynamic portion of the hook name, $post_type, refers to
1645       * the post type slug.
1646       *
1647       * @since 3.5.0
1648       *
1649       * @see get_post_type_labels() for the full list of labels.
1650       *
1651       * @param array $labels Array of labels for the given post type.
1652       */
1653      return apply_filters( "post_type_labels_{$post_type}", $labels );
1654 }
1655
1656 /**
1657  * Build an object with custom-something object (post type, taxonomy) labels
1658  * out of a custom-something object
1659  *
1660  * @since 3.0.0
1661  * @access private
1662  *