_draft_or_post_title
_draft_or_post_title ( $post = 0 )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
Returns:- (string) The post title if set.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Gets the post title.The post title is fetched and if it is blank then a default string is
returned.