Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_comment_guid [ WordPress Function ]

get_comment_guid ( $comment_id = null )
Parameters:
  • (int|object) $comment_id Optional comment object or id. Defaults to global comment object.
Returns:
  • (bool|string) false on failure or guid for comment on success.
Defined at:



Retrieve the feed GUID for the current comment.

Source


<?php
function get_comment_guid($comment_id null) {
    
$comment get_comment($comment_id);

    if ( !
is_object($comment) )
        return 
false;

    return 
get_the_guid($comment->comment_post_ID) . '#comment-' $comment->comment_ID;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics