_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

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

Related Functions

wp_latest_comments_draft_or_post_title, register_block_core_post_title, render_block_core_post_title, _get_last_post_time, get_post_time

Top Google Results

User discussions

wpseek mobile