apply_filters( 'get_the_guid', string $post_guid , int $post_id )
Filters the Global Unique Identifier (guid) of the post.
Parameters
-
$post_guid
string -
Global Unique Identifier (guid) of the post.
-
$post_id
int -
The post ID.
More Information
Note that the filter callback function must return the guid after it is finished processing, or any code using the guid (for example: RSS feeds) will break, and other plugins also filtering the guid may generate errors.
Source
File: wp-includes/post-template.php
.
View all references
return apply_filters( 'get_the_guid', $post_guid, $post_id );
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |