comment_guid

函式
comment_guid ( $comment_id = null )
引數
  • (int|WP_Comment) $comment_id Optional comment object or ID. Defaults to global comment object.
    Required:
    Default: null
定義位置
相關方法
comment_idget_comment_guidget_comment_idcomment_datecomment_time
引入
2.5.0
棄用
-

comment_guid: 這個函式返回評論的全球唯一識別符號(GUID)。GUID是評論的唯一識別符號,WordPress用它來識別和跟蹤評論。

顯示當前評論的feed GUID。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function comment_guid( $comment_id = null ) {
echo esc_url( get_comment_guid( $comment_id ) );
}
function comment_guid( $comment_id = null ) { echo esc_url( get_comment_guid( $comment_id ) ); }
function comment_guid( $comment_id = null ) {
	echo esc_url( get_comment_guid( $comment_id ) );
}

常見問題

FAQs
檢視更多 >