[wp-hackers] Special comments managemente
Pixline
supporto at pixline.net
Thu Feb 7 12:50:55 GMT 2008
I didn't play with those filters, but I guess you need to look those:
> 1) When a comment is posted i ahve to intercept the post form read the
> radio button, let WP save the comment and write a special new table
> (created when plugin is activated) that assoicate the comment ID to
> post category A or B
wp-includes/comment.php:476
$comment_content = apply_filters('comment_save_pre', $comment_content);
> 2) When post are showed i have to intercept the array and for each
> comment check that special table to assign it to a category and then
> output all the procesed comments in 2 divs that via css will show upp
> as 2 columns.
wp-includes/comment.php:94
$_comment = apply_filters('get_comment', $_comment);
(this is for single comment)
wp-includes/comment-template.php:301
$comments = $wp_query->comments = apply_filters( 'comments_array',
$comments, $post->ID );
(this is for the array)
let me know if this help you :-)
Bests,
Paolo Tresso
---------------------------------------
http://pixline.net - http://amisnet.org
http://linkedin.com/in/paolotresso
More information about the wp-hackers
mailing list