post_type_labels_(post_type) хук-фильтр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:

Использование

add_filter( 'post_type_labels_(post_type)', 'wp_kama_post_type_labels_filter' );

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

	// filter...
	return $labels;
}
$labels(объект)
Object with labels for the post type as member variables.

Список изменений

С версии 3.5.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.