post_type_labels_attachment filter-hookWP 3.5.0

Filters the labels of a specific post type.

This is one of the variants of the dynamic hook post_type_labels_(post_type)

Usage

add_filter( 'post_type_labels_attachment', 'wp_kama_post_type_labels_attachment_filter' );

/**
 * Function for `post_type_labels_attachment` filter-hook.
 * 
 * @param object $labels Object with labels for the post type as member variables.
 *
 * @return object
 */
function wp_kama_post_type_labels_attachment_filter( $labels ){

	// filter...
	return $labels;
}
$labels(object)
Object with labels for the post type as member variables.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.