diff --git a/wp-includes/post.php b/wp-includes/post.php index c1dfd168d9..37e1057e98 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1379,7 +1379,11 @@ function get_post_type_labels( $post_type_object ) { 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ) ); $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; - return _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); + + $labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); + + $post_type = $post_type_object->name; + return apply_filters( "post_type_labels_{$post_type}", $labels ); } /**