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
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.