[wp-trac] [WordPress Trac] #25196: add new function get_comment_post_ID()
WordPress Trac
noreply at wordpress.org
Fri Aug 30 18:34:39 UTC 2013
#25196: add new function get_comment_post_ID()
-------------------------+-----------------------------
Reporter: alexvorn2 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
add a new function that will return the id of the post of the comment
We have get_comment_ID() but no get_comment_post_ID();
the function can be like this:
{{{
function get_comment_post_ID() {
global $comment;
return apply_filters('get_comment_post_ID',
$comment->comment_post_ID);
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25196>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list