WPDev.one
Core Function
View Source on Trac ↗

get_the_guid()

get_the_guid( mixed $post = 0 )

Retrieves the Post Global Unique Identifier (guid).

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Optional. Post ID or post object. Default is global $post.

Required

Return Value

(string)
string

Function Information

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