get_the_title ( $post = 0 )
- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
- Introduced in WordPress: 0.71
- Deprecated in WordPress: —
Retrieve post title.If the post is protected and the visitor is not an admin, then "Protected"
will be displayed before the post title. If the post is private, then
"Private" will be located before the post title.