Switch language

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




get_comment_meta [ WordPress Function ]

get_comment_meta ( $comment_id, $key = '', $single = false )
Parameters:
  • (int) $comment_id Comment ID.
  • (string) $key Optional. The meta key to retrieve. By default, returns data for all keys.
  • (bool) $single Whether to return a single value.
Uses:
Links:
Returns:
  • (mixed) Will be an array if $single is false. Will be value of meta data field if $single is true.
Defined at:



Retrieve comment meta field for a comment.

Source


<?php
function get_comment_meta($comment_id$key ''$single false) {
    return 
get_metadata('comment'$comment_id$key$single);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

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

- Bulunamadý -

Yeni bir konu yaz ...

1 User Note(s)

Gravatar
I use get_comment_meta in my contact manager theme if anyone is looking for an integration example. driftwoodcms.com

Yeni Ekle ...



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