get_the_guid

過濾鉤子
apply_filters( 'get_the_guid', $post->guid, $post->ID )

get_the_guid: 這個函式檢索當前文章的全球唯一識別符號(GUID)。GUID是一個唯一的識別符號,在每個文章建立時被分配給它,用於在各種情況下引用該文章,例如在RSS feeds中。

此過濾器記錄在wpincludes/post-template.php中

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),
'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),
'rendered' => apply_filters( 'get_the_guid', $post->guid, $post->ID ),

常見問題

FAQs
檢視更多 >