Hot answers tagged

2

You should use get_comments( $args ) and add the post ID in the arguments ($args) array: $post_id = 1; // post ID here from the submitted data $comments = get_comments(array( 'post_id' => (int) $post_id )); // dump the comments found print_r( $comments ); That would get you a comments list on that post. Hope that helps.


2

There's a great article explaining how to hook into 2 filters for this at http://www.sourcexpress.com/customize-wordpress-comment-notification-emails/ To send your notifications to a particular user and not the site admin, try this for a user with ID 123: function se_comment_moderation_recipients( $emails, $comment_id ) { $comment = get_comment( ...



Only top voted, non community-wiki answers of a minimum length are eligible