A WordPress-centric search engine for devs and theme authors



post_type_labels_{$post_type} ›

Since3.5.0
Deprecatedn/a
apply_filters( "post_type_labels_{$post_type}", $labels )
Parameters:
  • (object) $labels Object with labels for the post type as member variables.
    Required: Yes
See:
  • get_post_type_labels()
Defined at:
Codex:

Filters the labels of a specific post type.

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





Source

$labels = apply_filters( "post_type_labels_{$post_type}", $labels );