• Hi everyone,

    I have multiple authors on my blog and I want to receive email notifications of new comments on all posts, not just ones authored by me. By default, WP sends notifications to the post author only.

    Is there a simple plugin that allows to do just that?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Admin/Settings/Discussion. Tick “E-mail me whenever – Anyone posts a comment”

    Thread Starter archon810

    (@archon810)

    @esmi

    I have that enabled already but WordPress only emails me when I’m the author (I’m also the admin obviously). It doesn’t email me if another person is the author.

    That’s not the normal default behaviour. Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems?

    resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress?

    increasing your available memory?

    Thread Starter archon810

    (@archon810)

    @esmi,

    I looked at the code and I think you’re wrong. Look at comment.php wp_new_comment(). It calls wp_notify_postauthor() which only notifies the user who owns the post. It also does wp_notify_moderator() in case a comment gets held in moderation, which is irrelevant but it never notifies the admin.

    if ( 'spam' !== $commentdata['comment_approved'] ) { // If it's spam save it silently for later crunching
    		if ( '0' == $commentdata['comment_approved'] )
    			wp_notify_moderator($comment_ID);
    
    		$post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment
    
    		if ( get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_id'] )
    			wp_notify_postauthor($comment_ID, $commentdata['comment_type']);
    	}
    
    	return $comment_ID;
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Plugin to always notify administrator for new comments?’ is closed to new replies.