首页 WordPress函数大全 get_the_guid()

get_the_guid()

2020-05-02 / 5141阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_the_guid( int|WP_Post $post )

Retrieve the Post Global Unique Identifier (guid).

描述

The guid will appear to be a link, but should not be used as an link to the post. The reason you should not use it as a link, is because of moving the blog across domains.

参数

$post

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

返回

(string)

大家谈论
    我的见解