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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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