[wp-trac] [WordPress Trac] #16965: Additional documentation for get_comment_meta
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 25 13:13:44 UTC 2011
#16965: Additional documentation for get_comment_meta
-------------------------+------------------------------
Reporter: nprasath002 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Inline Docs | Version: 3.1
Severity: minor | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by dd32):
The $meta_key is not optional at present with the function as-is. You can
however pass a blank string to it to retrieve all meta.
Setting a default on $key would however allow that.
{{{
function get_comment_meta($comment_id, $key, $single = false) {
return get_metadata('comment', $comment_id, $key, $single);
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16965#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list