Core Function
View Source on Trac ↗ wp_latest_comments_draft_or_post_title()
wp_latest_comments_draft_or_post_title( mixed $post = 0 ) Get the post title.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or WP_Post object. Default is global $post. Required |
Return Value
(string)
The post title if set; "(no title)" if no title is set.
Function Information
Since Version
3.3.0
Source File
wp-includes/blocks/latest-comments.php
Advertisement