How to Make Disqus Notify the Post Author When a New Comment Is Posted?

By default, in a multi-authors blog, you can get WordPress to notify the post author when a new comment is posted. To do this, you just have to update the “Email me whenever” field in “Settings -> Discussion”.


Now if you are using Disqus as your comment system, you will find that it won’t notify the author when a new comment is posted. Instead, it will only notify the moderators.

To fix this, go to the Disqus-Comment-System folder in the Plugins directory. Open the disqus.php in a text editor. Scroll down to line 289 where you see the following:

$comment_id = $commentdata['comment_ID'];
update_comment_meta($comment_id, 'dsq_parent_post_id', $comment->parent_post);
update_comment_meta($comment_id, 'dsq_post_id', $comment->id);

Add in the line “wp_notify_postauthor($comment_id);” so that it becomes:

$comment_id = $commentdata['comment_ID'];
update_comment_meta($comment_id, 'dsq_parent_post_id', $comment->parent_post);
update_comment_meta($comment_id, 'dsq_post_id', $comment->id);

Save, upload and replace the file back to the server.

That’s it. It should notify your authors whenever there is a new comment.

  • Evan W.

    Wow, this is fantastic. This has been my biggest frustration since switching to Disqus – my authors no longer have any idea when anybody comments on their posts. This will fuel replies + author esteem.

  • Quizzer

    thanks for the info :D

  • Shafar

    Awesome Damien! I was looking for this and I thought to drop a feedback at disqus help center. But this hack is working fine. I think disqus developers should see this post!

    Thanks again. :D

  • Erika Jurney

    Do you know how to make it send a notification to both the admin *and* the author? I like to see all the comments, but I also want the authors to see the ones from their posts.

    Thanks for this great tip!

  • fotografimy

    great!!!! i am just about to write to disqus, you're the man! this is very crucial for multiauthors blog!

  • Michelle

    I've tried this on my multiauthor blog but it doesn't work. I'm not aware that checking the "Email me whenever" boxes will send notifications to post authors – for me that has only ever sent the emails to "me" – the blog administrator. Is there another plugin I should be using, or a function to put in my functions.php file?

  • Michelle

    Posting another comment because I forgot to subscribe on the previous comment and meant to :-)

  • Damien Oh

    Checking the "Email me whenever anyone posts a comment" will send an email notification to the author when a comment is posted. However if you are using Disqus, it will replace the conventional comment system, thus bypassing the email to authors feature.

  • Gonzague Dambricourt

    You can probably receive emails from Disqus as the admin while post authors will receive them by WordPress

  • Gonzague Dambricourt

    awesome thanks a lot ! I dont understand why this isnt integrated in Disqus … would make things easier.

    But I suppose this uses WordPress traditional comments mails so we kinda loose one of Disqus cool features : the ability to reply by email to a comment :)

  • Damien Oh

    Yes, you are correct. By inserting the above code, the admin will receive mails from Disqus, while the authors will receive mails from wordpress.

  • Damien Oh

    Yes, you are right. But to start with, Disqus doesn’t even send a mail to the authors, so this is already a bonus.

  • Gonzague Dambricourt

    exactly, I find your fix very useful , its just very sad that Disqus doesnt do anything to help in that regard :/

    I asked them on Twitter but they dont seem to reply to everybody ..

  • Filipe Fernandes

     FUCK YEAH! o/
    Thanks so much for sharing, was very helpful!


  • Filipe Fernandes

     hey dude! not seem to work very well. I have just received e-mail alerts on new comments. the other authors are not getting. I did exactly as the post says, but really dont work. what is happening? I need to configure anything on my Disqus dashboard?


  • Sameer Khan

    doesn’t seem to be working…can sm1 help me with it ??

  • Damien Oh

    Open the disqus.php file and search for the line

    update_comment_meta($comment_id, ‘dsq_post_id’, $comment->id);

    Insert the line


    below it. Save and reupload the file. It should work.

  • Sameer Khan

    it only sends mail…when a comment gets approved…

  • Anonymous

    This is helpful, thanks for posting Damien. It’s too bad that DISQUS doesn’t have more hooks to work with, Ideally it would be great to have this in my functions.php file, or even better as an option in the admin.

  • Damien Oh

    Sad to say, one year after this post, Disqus still haven’t fixed the problems.

  • Tyler Hayes

    Thanks for writing this @4706cc8b40c3544c75b82104d4af1f38:disqus . Sorry no one on our team saw this (way) earlier.

    After taking a look at the proposed code change (which is a pretty neat hack) this actually isn’t something we’re able to include as a feature in our plugin.

    To elaborate a bit: in Disqus each thread of comments has only one author just like each post in WordPress has only one author. By default each thread in a Disqus forum has the same author: the primary moderator of that forum (i.e., the person who registered the forum on Disqus). Authors in Disqus can only be changed using our Author-specific moderation add-on.

    The code change provided here doesn’t actually change the author of the thread in Disqus nor does it send a Disqus notification; it sends WordPress notifications to the author of the post in WordPress. Sending a Disqus, rather than WordPress, notification would require changing the thread’s author in our system.

    That said, I’ve added this to our internal list of features and, should we perform any fundamental refactoring on our author infrastructure, we’ll re-visit adding this feature. Don’t hesitate to reach out to us at and any time with any further questions, thoughts, or sweet hacks. And thanks again for putting this doc together!

  • Damien Oh

    Hi Tyler,

    Thanks for coming over to comment and answer the question.

    I didn’t look into the full structure of the disqus plugin, so I am not sure how it works. However, as an editor for a multi-author blog, I must say that the author comment notification is very important to me (and many other multi-authors blog) and this hack is very necessary. I do appreciate if you can look into the issue and see if you can provide a workaround for this.

  • Damien Oh

    The links in disqus are nofollow by default.

  • MHazell

    Quick question:
    How come your a mod of every site you visit? Curious…

  • diploma of business

    Thanks to your and Disqus’ stance on pseudonyms, I’ve had the opportunity to communicate with creative minds from around the globe and across social hierarchies.Keep this sweet writing continue with more updates.Well done.

  • Michael

    didnt work.

  • Jordan

    Works perfectly! Thanks so much!

  • Umeshawasthi

    Thanks for the good hack point. I am also struggling with one issue bt unable to find any solution, we have multiple author blog with some of the author not registered with us.So we add a custom field to there post (email) and based on this email we able to recognize the author.
    Unfortunately this will not work in Disqus since we want to highlight the comment of the post author but i have not seen a way how Disqus find information about post’s author or can we tweak it so that we can tell Disqus who is the post author.
    If the email id of the post’s custom field matches with the email id of the commentator we can flag/tell Disqus that this person is actually is the post’s author.
    We are using wordpress

  • braveopenseas

    This is really exciting – it’s been a huge need on the site I manage. I currently just have to forward all comments to their respective authors.

    One problem though… it’s not working! I wish I could elaborate more than that – but even with the added hack, the authors are still not receiving emails. Our site is built on the Genesis theme – would that have anything to do with it? Are there any WP Settings that I need to make sure are set up the right way? Let me know if I can provide you with any more pertinent information.

  • Damien Oh

     Did you go to the “Settings -> Discussion” and select the option “Email me whenever anyone posts a comment”?

  • braveopenseas

    Yes, I have that option selected.

  • Damien Oh

     It has been working well for me all the while and I am using it on several sites as well. The only problem I can think of is that either the author email address is not properly set, or your server’s mail system is not working.

  • Damien Oh

     Also, make sure the ” wp_notify_postauthor” function is added to the correct place in the disqus.php file.

  • Gui Loureiro

    Hi Damien, I´ve used your code and it was working fine, also with the new DISQUS 2012, but now it isn´t working anymore, do you know how to bypass it?

  • Damien Oh

     Did you update the plugin? If yes, you have to insert the code again at the correct place.

  • Gui Loureiro

    Nope, that´s the problem, with Disqus 2012 I think it doesn´t need more updates on the plugin. Because they make the changes and it goes live!

  • Damien Oh

     I have upgraded to Disqus 2012 and the notification continues to work. Theoretically, it should work as long as Disqus sync the comments to your site.

  • Tyler Hayes

    Disqus 2012 does not currently support a couple callbacks, which in turn are causing part of the code to not process and this includes the syncing action. We’re adding support in for those callbacks soon  which will allow the syncing action to fire again and notifications to send. Sorry about the delay guys. cc @GuiLoureiro:disqus 

  • Gui Loureiro

    Thanks Tyler, I´ve noticed that the syncing is with problems. Thanks for your concern.

  • Damien Oh

     Hi Tyler, thanks for dropping us to add a comment. I am excited and impressed with Disqus 2012, but I hope it doesn’t introduce more problems. Thanks for the hard work.

  • Cogitoetvolo

    Hi Tyler, I just read today in Disqus website that “Callbacks are now supported in Disqus 2012″. However, notification still doesn’t work in my site.

  • Cogitoetvolo

    Hi Damien, is there some news about this problem? 
    Notification still doesn’t work
    Thank you

  • Cogitoetvolo

    Now all works! Good!

  • chetan

    Hi! Does this still work?

  • chetan

    I’m asking because disqus just upgraded their plugin..

  • chetan

    Also, from what I understand, wp_notify_postauthor($comment_id); will send an email using the wordpress system which won’t allow authors to use disqus features. Am I correct?

  • Damien Oh

     Yes. It should still work. You have to paste the code “wp_notify_postauthor($comment_id);” at the end of line 354 for the latest version (2.73).

  • Damien Oh

     Yes. It will just serve as a notification for the authors that they have a comment for their posts.

  • Mark Alexander

    How do users get to see follow up comments though if they login with Twitter or Facebook? I’ve just upgraded to Disqus 2012 and users are telling me that they are not getting notified of reply comments if they log in with a social network as opposed to commenting as a guest, adding an email address and ticking the box to get comment responses. Am I missing something?

  • Raju

    This was working fine till a couple of weeks back, but not anymore. Just to be clear, the plugin has not been updated and the code is still present in disqus.php

  • Webhouse

    thank you, i can’t realize why they don’t implement this…

  • Burrell Gill Jr

    Thank you for the info on this particular issue. I’ve tried the code you gave but for some reason the comment author doesn’t get notified about my reply to their comment, I get the email notification. Did i do something wrong? Should I have placed the code while the plugin was deactivated? I did it while it was active.

  • Terri Z

    Damien, this is an awesome hack, thank you. I also use Disqus for articles on the non-WP part of my site. How can I “set” the author so they get notified of comments on their articles, too?

  • Damien Oh

    What do you mean by “non-Wp” part of your site?

  • Terri Z

    Sorry, let me explain. I have a multi-author blog, done in WordPress (Wp). I also have additional content (e.g., articles) that is managed through a content management system, and I have Disqus installed for comments on those articles as well. Each article has a specific author as well.

    Does that make more sense?

  • Damien Oh

    If you place Disqus in the article managed by other CMS, then your comment won’t be synced to the WordPress database, so you can’t fire a “Email author” event. You might have to look into other CMS how it manage author notification.

  • Terri Z

    Ok, thanks. I can get Disqus to notify the admin at least, and then we can manually notify the author. We get most of our comments on the blog anyway. Thanks for looking into it!

  • Austin Briggs

    It’s a seriously needed feature. Comments on my multi-author blog nose-dived after I switched to Disqus. I had no idea why; and I concluded that folks simply didn’t enjoy the system.

    Then, today, one of the authors mentioned in passing that he no longer receives comment notifications, so his engagement with my site dwindled.

    I spent an hour looking through the Disqus documentation and not finding even a mention of this issue. Maybe you need to include this work-around into your help files, at least.

    I’m so happy I’ve found this instruction above, as I was just about to delete Disqus from my system. As much as I love your software, my audience is more important to me, haha.

  • Tyler Hayes

    Glad to hear you were able to at least find the documentation here. Sorry to hear you couldn’t at — if you remember what keywords/phrases you searched for, feel free to email me and I can help make that documentation more visible.

  • Austin Briggs

    Thanks, Tyler. I believe I searched for “email notifications”, “comment notifications”, “author” and things like this. All the links I found were bringing me back to how to toggle my own notifications within the Disqus system.

  • Chris Duell

    I’ve been looking for a solution to this for days also, notifications being sent to us (the owners) are useless, they need to be sent to the post authors (multi author, public, blog)

  • sugarcrm development

    Working very greatly. Sounds pretty fine. I had problem of notification won’t be came on new comments but after your post problem solved…

  • Antonio

    With the new disqus version (2.74), is it possible to make it work?

  • Thiago Miro

    Thank you very much. This tip is fantastic.

  • Simon Levesque

    This is just too good. Thanks a lot.
    Just to mention, in the newest version, it moved to line 352 in the disqus.php file.

  • Jane Blogs

    A better question. How are trolls able to delete comments on disqus and who are NOT moderators while they do it?

  • shanm1313

    Wow really good tutorial to get know

  • LD Jackson

    Is there a way to prevent duplicate comment notifications? Whenever I perform this hack, I start receiving comment notifications from Disqus and from WordPress.

  • Edouard Garret

    It does not seem to be working anymore… I’ve tried several times. Any reason?

  • LD Jackson

    I have this change implemented and it’s working great. The one question I have is this. I am receiving two different emails notifying me of comments when i write a post myself. One from Disqus and one from WordPress. Is there a way to turn the WordPress comment notification off for my own posts?

  • Edouard Garret

    Hello, since I could not find a way to make this work, would you mind helping me about this workaround? I have tried to include the code on line 355 (vs 289) but it still does not work. Is there something I have to do in the discussion settings of wordpress to make it work? Thank you for your help!

  • Damien Oh

    Under “Settings -> Discussions”, did you enable the option “Email me when Anyone posts a comment”?

  • Edouard Garret

    Thank you for your reply Damien. Yes the option is enabled. That’s the weird part…

  • Dardan

    Hi, Does this still work for you?

  • Janne (

    Hey Antonio and others! Take a look at the small WP plugin I created yesterday to address the issue. The goal is not to hack the Disqus plugin as you’ll break your upgrade path by doing so. This should solve your problem:

  • Janne (

    Hey Edouard and others! Take a look at the small WP plugin I created yesterday to address the issue. The goal is not to hack the Disqus plugin as you’ll break your upgrade path by doing so. This should solve your problem:

  • Janne (

    In case you people reading this article, this small plugin should solve your problem:

  • Edouard Garret

    Thank you very much Janne! I’ll try it out as soon as I can. I will keep you posted if there is any issue. Best,

  • Janne (

    Also, didn’t mean to bash you Damian :) Your post gave me an idea of how to cut 10+ lines of code out of my plugin by using the wp_notify_postauthor function instead of recreating its functionality myself :)

  • isabellaj

    Thanks a ton for sharing this information with us.. :)

    Guys have a query for you how do you manage and secure your passwords?

  • Yaniv Wainer

    Thank you @jcederberg:disqus for your plugin. It doesn’t seem to work – only the moderator receives an email (from Disqus) and the author doesn’t. Also, I don’t see the new comment in Comments > All Comments like I did with previous comments left on Disqus. Can you shed some light on this issue?

  • Janne (

    Hey Yaniv, could you be more specific at least with regard to your WordPress version and your version of the Disqus plugin? You’re the first one saying it doesn’t work.

    For me, notifications come through ok and the plugin does not affect the way Disqus imports comments back to WP.

    Is your site a one-person blog/site or multiple authors? If one-person, is the email address in their WP profile correct? If multiple-user site, do all users report the same behavior as you?

  • Yaniv Wainer

    I manually synced Disqus with WP, and after a while the email arrived to the author. I thought this would be immediate, but it’s not. How does it work? Do the comments get synced once in a while automatically through some kind of cron job and then the email is sent?

  • D

    The plugin isn’t working for me either. Currently using WP 3.3.1 and Disqus version 2.72.

  • Janne (

    The Disqus plugin posts comment data back to your WP instance on a slight delay, this is by design on Disqus’s part. I usually see Disqus push the comments back to WP within ~5-7 minutes.

  • Janne (

    Does it not work at all or do the notifications arrive with a few minutes delay? The delay is by design, I can’t do anything about it as it is dependent on Disqus pushing comments back to your WP. But in case it doesn’t work at all, unfortunately I don’t currently have time to fix it for WP3.3, sorry. In case you do fix it yourself, throw me a pull request on GitHub :)

  • Dardan

    Nope doesn’t work at all. I upgraded to the latest WP v3.9.1 and still doesn’t work. Using Disqus 2.72.

  • Janne (

    I’ve only tested with version 2.74 of the disqus plugin (or whatever it says on the github page) and don’t know about other versions. Does the plugin crash? The problem could also be elsewhere like your server or WP not being correctly configured to send email. Also have you checked that the notification emails don’t go into spam?

  • Janne (

    Hey Dardan! Could you try if it works for you now: ? Did one small fix.

  • Janne (

    Hey Yaniv! Could you try if it works for you now: ? Did one small fix.

  • Janne (

    To anyone reading this thread and who had problems getting my plugin to work, I made a small fix to the plugin and it should now work with at least WordPress 3.9 with Disqus Comment System 2.74 and 2.75 (

  • Mona Ali
  • Cheap Essay

    Thanks for your excellent posting. I really enjoyed reading this blog.


  • AND Magazine

    Any suggestions for those of us NOT using WP? I use Disqus on a regular website.

  • Janne (

    Hey Eduardo, I promoted the plugin to the official WP repositories. As of yesterday you can now find it here:

  • Edouard Garret

    Hi Janne, thank you very much! I’ll try to install it next week and will let you know if it works! Can’t wait to see it in action! It’s still weird that Disqus did not think about this! Best,

  • Mark

    The plugin talked about in the thread and found here works great for me. Was going to edit the PHP but didn’t want to have to everytime I upgraded the plugin.

  • Janne (

    So to summarize, there’s now a plugin for this on the official WP plugin list:

  • AND Magazine

    Can anyone help? I use Disqus on a regular website. I built our CMS on SQL/php backbone. I’d like our authors to be notified if there is a comment on their article. We have numerous authors and it’s not feasible to give 300+ authors admin access to our Disqus account.

  • Micheline Drebert

    Amazing Damien! I was looking for this and I believed to fall a reviews at disqus help middle. But this crack is operating excellent. I think disqus designers should see this post! do my assignment with perfection

  • Crazy Mass

    Buy Crazy Mass provide 8 different supplements, each aimed
    to different areas of body building. You are also able to get combos and
    stacks to give you the quickest and most effective results.

    Mass, crazyMass, Where to Buy Crazy Mass, Crazy Mass Reviews, Crazy Bulk

    Buy Crazy Mass

  • Scarlett Locaa

    Provillus, Buy Provillus, Provillus Reviews, Provillus For Men, Provillus For Women :

  • Libby Costas – Green Coffee Bean Max, Visit Now :

  • Robert Dsuza

    Crazy mass works well all the time and in crazy mass reviews the users truly have got positive result of gaining muscles. Crazy Maas product is the blend of natural ingredients that provides strong muscles.

  • Barb Villeneuve

    Green Coffee Bean Extract – Dr OZ Called it
    “A Miracle Weight Loss Breakthrough.

  • Barb Villeneuve

    Coffee Bean Extract – Dr OZ Called it “A Miracle Weight Loss Breakthrough.

  • Ashley Murphy

    V-Tight Gel – The Vaginal Tightening Gel and Exercise Program – Visit Now:

  • Barb Villeneuve

    A green coffee
    extract is an extract of unroasted, green coffee beans. Green coffee extract
    has been used as a weight-loss supplement and as an ingredient in other
    weight-loss products.

  • kimberlyaa

    Find My ZetaClear Review and Discover My ZetaClear Results with Latest Pics :

  • dave1984

    how to make posts from people I “follow” to appear on my Homefeed or email? thanks

  • Teix Francisco

    TBal75 – The Legal Steroids &
    Muscle Builder Supplements :

  • adalinekk

    Green Coffee Bean Max Reviews – For rapid weight Loss within weeks now offering free bottles on every purchases:

  • willie connery