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:
  • (string)
Defined at:

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.

Related Functions

get_the_time, get_the_title_rss, the_title, get_the_date, get_the_id

Top Google Results

User discussions

wpseek mobile