get_the_title
get_the_title ( $post = 0 )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
Returns:Defined at: - Introduced in WordPress: 0.71
- Deprecated in WordPress: —
Description
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.