apply_filters( "post_type_labels_{$post_type}", object $labels )
Filters the labels of a specific post type.
Description Description
The dynamic portion of the hook name, $post_type
, refers to the post type slug.
See also See also
- get_post_type_labels(): for the full list of labels.
Parameters Parameters
- $labels
-
(object) Object with labels for the post type as member variables.
Source Source
File: wp-includes/post.php
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
If you need to modify the post type labels, note the labels parameter for this filter is an object, not an array.
In the example below, the post type is “employee” and the new label reference is “headshot”.
Expand full source codeCollapse full source code