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: —
Retrieves the post title.If the post is protected and the visitor is not an admin, then "Protected"
will be inserted before the post title. If the post is private, then
"Private" will be inserted before the post title.