WPDev.one
Core Function
View Source on Trac ↗

get_post_type_labels()

get_post_type_labels( mixed $post_type_object )

Builds an object with all post type labels out of a post type object.

Parameters 1 required

Name / Type Description
(object

| WP_Post_Type) $post_type_object Post type object.

Required

Return Value

(object)
Object with all the labels as member variables.

Function Information

Since Version
3.0.0
Source File
wp-includes/post.php
Advertisement