WPDev.one
Core Function
View Source on Trac ↗

get_the_title()

get_the_title( mixed $post = 0 )

Retrieves 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)
string

Function Information

Since Version
0.71
Source File
wp-includes/post-template.php
Advertisement