WordPress at Your Fingertips
filter is not described

post_type_labels_(post_type) filter-hook . WP 3.5.0

Filters the labels of a specific post type.

The dynamic portion of the hook name, $post_type, refers to the post type slug.

Possible hook names include:

  • post_type_labels_post
  • post_type_labels_page
  • post_type_labels_attachment


add_filter( 'post_type_labels_(post_type)', 'filter_function_name_7237' );
function filter_function_name_7237( $labels ){
	// filter...

	return $labels;
Object with labels for the post type as member variables.


Since 3.5.0 Introduced.

Where the hook is called

wp-includes/post.php 1856
$labels = apply_filters( "post_type_labels_{$post_type}", $labels );

Where in WP core the hook is used WordPress

Usage not found.