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
1446           'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
1447           'parent_item_colon' => array( null, __('Parent Page:') ),
1448           'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) )
1449      );
1450      $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
1451
1452      $labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );
1453
1454      $post_type = $post_type_object->name;
1455      return apply_filters( "post_type_labels_{$post_type}", $labels );
1456 }
1457
1458 /**
1459  * Builds an object with custom-something object (post type, taxonomy) labels out of a custom-something object
1460  *
1461  * @access private
1462  * @since 3.0.0
1463  */
1464 function _get_custom_object_labels( $object, $nohier_vs_hier_defaults ) {