2020-05-01 / 4843阅 / 悠然
Retrieves a post type object by name.
Top ↑
(string) (Required) The name of a registered post type.
(WP_Post_Type|null) WP_Post_Type object if it exists, null otherwise.