WPDev.one
Core Function
View Source on Trac ↗

_draft_or_post_title()

_draft_or_post_title( mixed $post = 0 )

Gets 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.

Function Information

Since Version
2.7.0
Source File
wp-admin/includes/template.php
Advertisement