Filters the Global Unique Identifier (guid) of the post.
$post_guidstring
$post_idint
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.
return apply_filters( 'get_the_guid', $post_guid, $post_id );
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_the_guid