_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:

Description

Get the post title.

The post title is fetched and if it is blank then a default string is returned.

Related Functions

_get_last_post_time, get_post_time, _transition_post_status, _insert_into_post_button, single_post_title

Top Google Results

User discussions

wpseek mobile