Definition:
function comment_excerpt( $comment_ID = 0 ) {}
Parameters
- int $comment_ID: The ID of the comment for which to print the excerpt. Optional.
Defined filters
- comment_excerpt
apply_filters('comment_excerpt', get_comment_excerpt($comment_ID)
Source code
function comment_excerpt( $comment_ID = 0 ) {
echo apply_filters('comment_excerpt', get_comment_excerpt($comment_ID) );
}
681

February 11, 2011 


comment_exists
Definition:
function comment_exists($comment_author, $comment_date) {}
Parameters
Return values
returns:Comment ID on success.
Source code
function comment_exists($comment_author, $comment_date) { global $wpdb; $comment_author = stripslashes($comment_author); $comment_date = stripslashes($comment_date); return $wpdb->get_var( $wpdb->prepare("SELECT comment_post_ID FROM $wpdb->comments WHERE comment_author = %s AND comment_date = %s", $comment_author, $comment_date) ); }683