WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1491 | 'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ), |
1492 | 'parent_item_colon' => array( null, __('Parent Page:') ), |
1493 | 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ) |
1494 | ); |
1495 | $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; |
1496 |
|
1497 | $labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); |
1498 |
|
1499 | $post_type = $post_type_object->name; |
1500 | return apply_filters( "post_type_labels_{$post_type}", $labels ); |
1501 | } |
1502 |
|
1503 | /** |
1504 | * Builds an object with custom-something object (post type, taxonomy) labels out of a custom-something object |
1505 | * |
1506 | * @access private |
1507 | * @since 3.0.0 |
1508 | */ |
1509 | function _get_custom_object_labels( $object, $nohier_vs_hier_defaults ) { |