Uma área de pesquisa sobre o WordPress para devs e autores do tema



post_type_labels_{$post_type} ›

Desde3.5.0
Obsoleton/a
apply_filters( "post_type_labels_{$post_type}", $labels )
Parâmetros:
  • (object) $labels Object with labels for the post type as member variables.
    Required: Yes
Ver:
  • get_post_type_labels()
Definido em:
Codex:

Filters the labels of a specific post type.

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





Fonte

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