2020-05-01 / 4905阅 / 悠然
Retrieves the post type of the current post or of a given post.
(int|WP_Post|null) (Optional) Post ID or post object. Default is global $post.
Default value: null
(string|false) Post type on success, false on failure.