Tag Info

Hot answers tagged

2

There is definitely a performance advantage in keeping your comment spam to a minimum. If you have a lot of comments, the query time can get pretty out of control. To make it easier, you should install Akismet if you haven't already. Akismet will automatically detect spam comments and move them to WordPress spam section. You can then delete all the spam ...


1

Have you tried comment_post action? It's fired right after the comment is inserted into the database. function share_comment_on_facebook( $comment_ID ) { $commentdata = get_comment( $comment_ID ); if ( $commentdata['comment_approved'] ) { // fire up the code to launch pop up } } add_action( 'comment_post', 'share_comment_on_facebook' ); ...



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