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
1505           'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
1506           'parent_item_colon' => array( null, __('Parent Page:') ),
1507           'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) )
1508      );
1509      $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
1510
1511      $labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );
1512
1513      $post_type = $post_type_object->name;
1514      return apply_filters( "post_type_labels_{$post_type}", $labels );
1515 }
1516
1517 /**
1518  * Builds an object with custom-something object (post type, taxonomy) labels out of a custom-something object
1519  *
1520  * @access private
1521  * @since 3.0.0
1522  */
1523 function _get_custom_object_labels( $object, $nohier_vs_hier_defaults ) {